KCNA · Question #58
How many hosts are required to set up a highly available Kubernetes cluster when using an external etcd topology?
The correct answer is D. Six hosts. Three for control plane nodes and three for etcd nodes. For a highly available Kubernetes cluster with an external etcd topology, you need at least three control plane nodes and three separate etcd nodes for quorum and fault tolerance, totaling six hosts.
Question
How many hosts are required to set up a highly available Kubernetes cluster when using an external etcd topology?
Options
- AFour hosts. Two for control plane nodes and two for etcd nodes.
- BFour hosts. One for a control plane node and three for etcd nodes.
- CThree hosts. The control plane nodes and etcd nodes share the same host.
- DSix hosts. Three for control plane nodes and three for etcd nodes.
How the community answered
(22 responses)- A5% (1)
- C5% (1)
- D91% (20)
Why each option
For a highly available Kubernetes cluster with an external etcd topology, you need at least three control plane nodes and three separate etcd nodes for quorum and fault tolerance, totaling six hosts.
Two control plane nodes and two etcd nodes are not sufficient for high availability with an external etcd setup; both would lack quorum if one node failed. A minimum of three is required for fault tolerance in a distributed system.
One control plane node is not highly available, representing a single point of failure, even if the etcd cluster has three nodes.
Combining control plane and etcd roles on three hosts describes a stacked etcd topology, not an external etcd topology, and doesn't match the six-host requirement for an external HA setup.
A highly available Kubernetes cluster requires a minimum of three control plane nodes for redundant API servers, schedulers, and controllers. For an external etcd topology, etcd also needs to run on at least three separate hosts to maintain quorum and fault tolerance, making a total of six distinct hosts the minimum for high availability.
Concept tested: Highly available Kubernetes cluster architecture (external etcd)
Source: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/high-availability/#external-etcd-topology
Topics
Community Discussion
No community discussion yet for this question.