How to build a high availability cluster in Kubernetes?

0 votes
Can anyone please help me with building a high availability cluster ?
Jul 12 in Kubernetes by Nizam
51 views

1 answer to this question.

0 votes

Add nodes in a HA cluster in kubernetes :

Once the masters are ready, nodes can be added into the system. The node should be finished with the prerequisite configuration as a worker node in the kubeadm cluster. 

Need to start kublet:

$ sudo systemctl enable kubelet && sudo systemctl start kubelet

Run  the join command as below . However, please change the master IP to the load balancer one:

// join command 
$ sudo kubeadm join --token <CUSTOM_TOKEN> <LOAD_BALANCER_IP>:6443 --discovery-token-ca-cert-hash sha256:<HEX_STRING>

Then go to the first master or second master to check the nodes' status:

// see the node is added
$ kubectl get nodes
NAME       STATUS ROLES     AGE VERSION
master01   Ready master    4h v1.10.2
master02   Ready master    3h v1.10.2
node01     Ready <none>    22s v1.10.2
answered Jul 12 by Sirajul
• 25,740 points

Related Questions In Kubernetes

0 votes
1 answer

How to use gravitational teleport in a container/kubernetes environment?

You can use teleport to augment kubernetes ...READ MORE

answered Jun 28, 2018 in Kubernetes by ajs3033
• 7,280 points
324 views
0 votes
2 answers
0 votes
1 answer

how to scale a statefulset in kubernetes?

Scaling StatefulSets : Use kubectl to scale StatefulSets First, ...READ MORE

answered Jul 23 in Kubernetes by Sirajul
• 25,740 points
54 views
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17 in Others by anonymous
2,175 views
+3 votes
1 answer
0 votes
1 answer

how to test a manifest without actually executing it in kubernetes?

You can use --dry-run flag to test the manifest.  This ...READ MORE

answered Jul 18 in Kubernetes by Sirajul
• 25,740 points
21 views
+1 vote
1 answer

How to deploy a feature with zero downtime in kubernetes?

By default Deployment in Kubernetes uses RollingUpdate as a ...READ MORE

answered Jul 18 in Kubernetes by Sirajul
• 25,740 points
255 views