Skip to content

Instantly share code, notes, and snippets.

@alexcmd
Last active December 23, 2019 14:37
Show Gist options
  • Save alexcmd/96c64bb331b7bf1b4a61bd9da0b2d69a to your computer and use it in GitHub Desktop.
Save alexcmd/96c64bb331b7bf1b4a61bd9da0b2d69a to your computer and use it in GitHub Desktop.
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