Last active
December 23, 2019 14:37
-
-
Save alexcmd/96c64bb331b7bf1b4a61bd9da0b2d69a to your computer and use it in GitHub Desktop.
This file contains 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
if [ "$1" == "" ] || ["$2" == "" ] || ["$3" == "" ]; then | |
echo "Use ./kube_node_setup.sh <master_ip> <token> <hash>" | |
else | |
echo "sudo kubeadm join $1:6443 --token $2 --discovery-token-ca-cert-hash $3" | |
sudo kubeadm join $1:6443 --token $2 --discovery-token-ca-cert-hash $3 | |
sudo systemctl restart kubelet | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment