Created
June 11, 2019 09:05
-
-
Save pastranastevenaz/4564276e67bbcefee2d8ba2c1316ba04 to your computer and use it in GitHub Desktop.
Install Kubernettes goodness on Ubuntu 18.04
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 | |
| #get the gpg key | |
| curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - | |
| #add the kebernetes URI to the sources.list.d repo list | |
| cat << EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list | |
| deb https://apt.kubernetes.io/ kubernetes-xenial main | |
| EOF | |
| #update system | |
| sudo apt update | |
| #install kubernetes repo | |
| sudo apt-get install -y kubelet=1.12.7-00 kubeadm=1.12.7-00 kubectl=1.12.7-00 | |
| #prevent kubernetes from updating | |
| sudo apt-mark hold kubelet kubeadm kubectl | |
| #After installing these components, verify that Kubeadm is working by getting the version info. | |
| kubeadm version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment