Created
January 27, 2018 10:45
-
-
Save alexellis/e8bbec45c75ea38da5547746c0ca4b0c to your computer and use it in GitHub Desktop.
Kubernetes-weave-ubuntu.sh
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 | |
sudo apt-get update \ | |
&& sudo apt-get install -qy docker.io | |
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 - | |
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" \ | |
| sudo tee -a /etc/apt/sources.list.d/kubernetes.list \ | |
&& sudo apt-get update | |
sudo apt-get update \ | |
&& sudo apt-get install -y \ | |
kubelet \ | |
kubeadm \ | |
kubernetes-cni | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi - how come you do multiple apt-get updates ? Why not add the google apt key and echo the kubernetes repo to sources, and do one apt-get update and one apt-get install ?