Skip to content

Instantly share code, notes, and snippets.

@songyunlu
Created September 27, 2017 03:35
Show Gist options
  • Save songyunlu/7c2ea75fe2d73c2044bd924249714b39 to your computer and use it in GitHub Desktop.
Save songyunlu/7c2ea75fe2d73c2044bd924249714b39 to your computer and use it in GitHub Desktop.
#/bin/sh
# kubeadm
sudo apt-get update && sudo apt-get install -y apt-transport-https
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo bash -c "echo 'deb http://apt.kubernetes.io/ kubernetes-xenial main' > /etc/apt/sources.list.d/kubernetes.list"
sudo apt-get update
sudo apt-get install -y kubelet kubeadm
# docker
sudo apt-get install -y docker.io
# kubectl
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
chmod a+x kubectl
sudo mv kubectl /usr/local/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment