Created
September 27, 2017 03:35
-
-
Save songyunlu/7c2ea75fe2d73c2044bd924249714b39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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