Skip to content

Instantly share code, notes, and snippets.

@shdobxr
Last active August 9, 2019 19:42
Show Gist options
  • Save shdobxr/edfc45034463e5561a8b51a0cb6a79cb to your computer and use it in GitHub Desktop.
Save shdobxr/edfc45034463e5561a8b51a0cb6a79cb to your computer and use it in GitHub Desktop.
Grab kubernetes for stretch
#!/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