Adding node to existing cluster in Kubernetes Adding node to existing cluster in Kubernetes kubernetes kubernetes

Adding node to existing cluster in Kubernetes


To do this in the latest version (tested on 1.10.0) you can issue following command on the masternode:

kubeadm token create --print-join-command

It will then print out a new join command (like the one you got after kubeadmn init):

kubeadm join 192.168.1.101:6443 --token tokentoken.lalalalaqyd3kavez --discovery-token-ca-cert-hash sha256:complexshaoverhere


You need to run kubelet and kube-proxy on a new minion indicating api address in params.

Example:

kubelet --api_servers=http://<API_SERVER_IP>:8080 --v=2 --enable_server --allow-privilegedkube-proxy --master=http://<API_SERVER_IP>:8080 --v=2

After this you should see new node in

kubectl get no


In my case the issue was due to an existing wront Route53 "A" record.Once it's been updated to point to internal IPs of API servers, kube-proxy was able to reach the masters and the node appeared in the list (kubectl get nodes).