Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
kubeadm prereqs
# Install docker
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-$(lsb_release -cs) main" > /etc/apt/sources.list.d/docker.list
apt-get update
apt-get install -y docker-engine=1.12.6-0~ubuntu-xenial
# Install kubernetes components
apt-get update && apt-get install -y apt-transport-https
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
EOF
apt-get update
apt-get install -y kubelet kubeadm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment