kubernetes linux install code example
Example 1: kubectl download
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.18.0/bin/linux/amd64/kubectl
Example 2: install kubernetess on mac
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl"
Example 3: install kubernetes on ubuntu
sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main"
Example 4: install kubernetes on ubuntu
sudo apt-mark hold kubeadm kubelet kubectl