sudo apt-get update
sudo apt-get install docker.io
sudo systemctl enable docker
sudo systemctl start docker
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add
sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main"
sudo apt-get install kubeadm kubelet kubectl
sudo apt-mark hold kubeadm kubelet kubectl
This step didn't work for me when I first tried it. If it doesn't for you, go google a solution.
sudo swapoff –a
sudo hostnamectl set-hostname switchblade-PROVIDER-AIRPORT-RANDOM
PROVIDER
is the abbreviation of the hosting provider name
Provider | Abbreviation |
---|---|
Contabo | ctb |
Vultr | vtr |
Amazon Web Services | aws |
Google Cloud | gcp |
Oracle Cloud | occ |
Azure | azr |
AIRPORT
is the code of the airport nearest to the machine, in lowercase
RANDOM
is a random 5-character string of numbers and lowercase letters.
Ask Pedro for the join command. It should look like this:
kubeadm join --discovery-token abcdef.1234567890abcdef --discovery-token-ca-cert-hash sha256:1234..cdef 1.2.3.4:6443