Skip to content

Instantly share code, notes, and snippets.

@fredhsu
Last active May 16, 2019 07:33
Show Gist options
  • Save fredhsu/7c96ba5ac52031ce21b761aec199db6d to your computer and use it in GitHub Desktop.
Save fredhsu/7c96ba5ac52031ce21b761aec199db6d to your computer and use it in GitHub Desktop.
Install kubeadm after CRI is installed
sudo apt-get update && sudo apt-get install -y apt-transport-https curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main
EOF
sudo apt-get update
sudo apt-get install -y kubelet kubeadm kubectl
sudo apt-mark hold kubelet kubeadm kubectl
@fredhsu
Copy link
Author

fredhsu commented Jan 16, 2019

Can run with

curl -s https://gist.githubusercontent.com/fredhsu/7c96ba5ac52031ce21b761aec199db6d/raw/bb292e5c2980841acb60e2698a0aeecf83345187/install-kubeadm.sh | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment