Join Worker Nodes to Kubernetes Cluster
Join Worker Nodes
Section titled “Join Worker Nodes”Use this after the control plane is initialized to add worker nodes to the cluster. If you are adding a brand new node that has not been provisioned, start with Add a Worker Node.
Step 1: Generate a join command
Section titled “Step 1: Generate a join command”Run this on the control plane:
kubeadm token create --print-join-commandStep 2: Join each worker
Section titled “Step 2: Join each worker”Run the generated command on each worker node:
sudo kubeadm join <control-plane-ip>:6443 --token <token> --discovery-token-ca-cert-hash sha256:<hash>Step 3: Verify the nodes
Section titled “Step 3: Verify the nodes”kubectl get nodes