install kubernetes on ubuntu 1

install kubernetes on ubuntu

curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"
echo "$(<kubectl.sha256) kubectl" | sha256sum --check
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
kubectl version --client

Here is what the above code is Doing:
1. Download the latest version of kubectl
2. Download the sha256 checksum for the latest version of kubectl
3. Verify the checksum
4. Install kubectl
5. Verify the installation

Similar Posts