Skip to content

Instantly share code, notes, and snippets.

@nqbao
Created November 27, 2016 00:37
Show Gist options
  • Save nqbao/d4f55f959dd9287e4840695446147d30 to your computer and use it in GitHub Desktop.
Save nqbao/d4f55f959dd9287e4840695446147d30 to your computer and use it in GitHub Desktop.
k8s_init.sh
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 docker.io
apt-get install -y kubelet kubeadm kubectl kubernetes-cni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment