Kubernetes Views 6

Kubernetes HA clusters, explained

Kubernetes HA clusters, explained image 1

What a Kubernetes HA cluster is


You can build Kubernetes with a single master node, but you can also build a Kubernetes cluster with multiple master nodes by using a load balancer, as shown below.

Kubernetes HA clusters, explained image 2

A cluster that uses multiple master nodes is called an HA cluster, or high-availability cluster.

Why you use a high-availability cluster


  1. Traffic load balancing
  • If there is too much traffic, a single master can become overloaded. A performance drop on the master node caused by that load can lead to a cluster failure, so you can spread the traffic across multiple master nodes.
  1. Master-node failover
  • The cluster can keep running even if one master node fails. With a single master node, if that master fails, the cluster stops or is damaged, and the service goes down.
  1. Upgrades without downtime
  • Kubernetes steadily releases updated versions with new features and stability fixes. To update Kubernetes you would otherwise have to stop the Kubernetes service you were using and then upgrade, but with multiple master nodes you can update in a rolling fashion.
  1. etcd stability
  • Kubernetes runs on top of etcd. With multiple master nodes, etcd is also set up for high availability, so you can keep it stable.

Why a load balancer is needed


A worker node talks to a single IP and treats it as the Kubernetes API.
With multiple master nodes, though, you have to load-balance the Kubernetes API servers to build the cluster, so you need a load-balancer node.

Reactions

Comments 0

A nickname and a password are required. The same password edits or deletes the comment later. Comments appear after a review.

Comments appear after a review. The password is used again to edit or delete.