Last active
August 9, 2019 19:42
-
-
Save shdobxr/edfc45034463e5561a8b51a0cb6a79cb to your computer and use it in GitHub Desktop.
Grab kubernetes for stretch
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-stretch 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 | |
### | |
kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment