sudo apt-get update && apt-get install -y apt-transport-https curl
If the node doesn't have gnupg || gnupg1 || gnugp2 installed, need install it first ('sudo apt-get install gnupg')
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add
Kubernetes is not included in the default repositories. To add them, enter the following:
sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main"
If get add-apt-repository command not found error, then install the update first:
sudo apt-get install software-properties-common
sudo apt-get install kubeadm kubelet kubectl
sudo apt-mark hold kubeadm kubelet kubectl
kubeadm version