Skip to content

Instantly share code, notes, and snippets.

@joshy91
Created July 12, 2018 04:38
Show Gist options
  • Save joshy91/a2082aa08a643c8ec7fdb98a518410be to your computer and use it in GitHub Desktop.
Save joshy91/a2082aa08a643c8ec7fdb98a518410be to your computer and use it in GitHub Desktop.
#!/bin/bash
#install kubernetes on ubuntu
#run commands as root
apt-get upgrade
apt-get install docker.io
echo “{
"exec-opts": ["native.cgroupriver=systemd"]
}” >> /etc/docker/daemon.json
apt-get install curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
echo “deb http://apt.kubernetes.io/ kubernetes-xenial main” >> /etc/apt/sources.list.d/kubernetes.list
apt-get update
apt install -y kubelet kubeadm kubectl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment