Created
July 12, 2018 04:38
-
-
Save joshy91/a2082aa08a643c8ec7fdb98a518410be to your computer and use it in GitHub Desktop.
This file contains hidden or 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/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