Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Kubernetes-weave-ubuntu.sh
#!/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
@kirkbrady

This comment has been minimized.

Copy link

@kirkbrady kirkbrady commented Feb 18, 2018

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.