Skip to content

Instantly share code, notes, and snippets.

@rdodev
Last active October 15, 2017 21:32
Show Gist options
  • Save rdodev/992629822edfb5dae5f0dad3fea8555e to your computer and use it in GitHub Desktop.
Save rdodev/992629822edfb5dae5f0dad3fea8555e to your computer and use it in GitHub Desktop.
Basic K8s Setuo
apt update && apt upgrade -y
apt-get install linux-image-$(uname -r) -y
apt install apt-transport-https ca-certificates curl software-properties-common build-essential -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt update
apt install docker-ce -y
service docker start
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
EOF
apt-get update
apt-get install -y kubelet kubeadm kubectl kubernetes-cni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment