Created
November 3, 2021 13:43
-
-
Save oki/5c8e9ecfd29ab903261c35280ad7d0ef 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
#!/usr/bin/env bash | |
apt-get update | |
apt-get install -y apt-transport-https ca-certificates curl vim sudo | |
curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg | |
echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list | |
apt-get update | |
apt-get install -y kubelet kubeadm kubectl | |
curl -fsSL https://get.docker.com/ -o get-docker.sh | |
sh get-docker.sh | |
swapoff -a; sed -i '/swap/d' /etc/fstab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After
install_k8s.sh
generate new token on the contol-plane node:and execute command on the new worker node: