High Availability (HA) Topologies (Stacked vs External etcd)
Design HA control planes with stacked or external etcd topologies.
In plain words
Stacked HA keeps the city ledger inside each government building; external etcd moves the copies to dedicated archival facilities. The simple Kubernetes rule is: Stacked HA colocates etcd with each control-plane node, while external etcd separates the data quorum from API, scheduler, and controller hosts and requires a separately managed service.
Think of it like…
Stacked HA keeps the city ledger inside each government building; external etcd moves the copies to dedicated archival facilities.
Where you’ve seen it
During a controlled maintenance window, the platform operator runs kubectl get nodes -l node-role.kubernetes.io/control-plane; ETCDCTL_API=3 etcdctl endpoint health --cluster. Expected evidence: Stacked HA colocates etcd with each control-plane node, while external etcd separates the data quorum from API, scheduler, and controller hosts and requires a separately managed service. If the run instead shows this symptom, stop and restore the last known state: Stacked topology couples a control-plane node loss to the etcd quorum, while external etcd adds a second machine fleet, certificates, networking, and restoration process.
Words you’ll hear
- HA
- For this lesson, HA is the controlling idea: Stacked HA colocates etcd with each control-plane node, while external etcd separates the data quorum from API, scheduler, and controller hosts and requires a separately managed service.
- Stacked etcd
- Stacked etcd is the checkpoint; run
kubectl get nodes -l node-role.kubernetes.io/control-plane; ETCDCTL_API=3 etcdctl endpoint health --clusterand inspect the owner chain. Stacked topology couples a control-plane node loss to the etcd quorum, while external etcd adds a second machine fleet, certificates, networking, and restoration process. - External etcd
- External etcd is the outcome to preserve; the cost is explicit: Stacked is compact and common, but external etcd isolates failure domains and capacity at the cost of greater infrastructure complexity.
- Verification evidence
- The evidence command is
kubectl get nodes -l node-role.kubernetes.io/control-plane; ETCDCTL_API=3 etcdctl endpoint health --cluster. It connects the declaration to this behavior: Design HA control planes with stacked or external etcd topologies.
Visual diagram
Theory & deep dive
How HA reaches the intended state
Design HA control planes with stacked or external etcd topologies. Stacked HA colocates etcd with each control-plane node, while external etcd separates the data quorum from API, scheduler, and controller hosts and requires a separately managed service.
The concrete checkpoint is kubectl get nodes -l node-role.kubernetes.io/control-plane; ETCDCTL_API=3 etcdctl endpoint health --cluster; compare the HA owner, Stacked etcd state, and External etcd outcome instead of treating YAML acceptance as proof.
Run kubectl get nodes -l node-role.kubernetes.io/control-plane; ETCDCTL_API=3 etcdctl endpoint health --cluster after the change and correlate the result with Events and the owning object. Stacked HA colocates etcd with each control-plane node, while external etcd separates the data quorum from API, scheduler, and controller hosts and requires a separately managed service.
Stacked etcd: failure boundary and production cost
Stacked topology couples a control-plane node loss to the etcd quorum, while external etcd adds a second machine fleet, certificates, networking, and restoration process. The prerequisite contract is concrete: Stacked HA colocates etcd with each control-plane node, while external etcd separates the data quorum from API, scheduler, and controller hosts and requires a separately managed service.
Stacked is compact and common, but external etcd isolates failure domains and capacity at the cost of greater infrastructure complexity. A safe design limits blast radius, records the last good configuration, and uses kubectl get nodes -l node-role.kubernetes.io/control-plane; ETCDCTL_API=3 etcdctl endpoint health --cluster as a deterministic rollback checkpoint.
Capture the current state with kubectl get nodes -l node-role.kubernetes.io/control-plane; ETCDCTL_API=3 etcdctl endpoint health --cluster, then correct the controlling manifest rather than patching a child object; the relevant divergence signal is specific: Stacked topology couples a control-plane node loss to the etcd quorum, while external etcd adds a second machine fleet, certificates, networking, and restoration process.
How it works, step by step
Step 1 of 41. Plan the lifecycle boundary
Inventory versions, capacity, state, backups, and ownership in a reversible plan: Stacked HA colocates etcd with each control-plane node, while external etcd separates the data quorum from API, scheduler, and controller hosts and requires a separately managed service.
- Goal
- Design HA control planes with stacked or external etcd topologies.
- Owner
- HA
When to use it & trade-offs
What it is
Design HA control planes with stacked or external etcd topologies. Stacked HA colocates etcd with each control-plane node, while external etcd separates the data quorum from API, scheduler, and controller hosts and requires a separately managed service.
Why it matters: Stacked topology couples a control-plane node loss to the etcd quorum, while external etcd adds a second machine fleet, certificates, networking, and restoration process. The invariant at risk is specific: Stacked HA colocates etcd with each control-plane node, while external etcd separates the data quorum from API, scheduler, and controller hosts and requires a separately managed service. The quickest fact check before changing the design is kubectl get nodes -l node-role.kubernetes.io/control-plane; ETCDCTL_API=3 etcdctl endpoint health --cluster.
When to reach for it
- Use HA to enforce this invariant: Stacked HA colocates etcd with each control-plane node, while external etcd separates the data quorum from API, scheduler, and controller hosts and requires a separately managed service.
- Use Stacked etcd evidence from
kubectl get nodes -l node-role.kubernetes.io/control-plane; ETCDCTL_API=3 etcdctl endpoint health --clusterin reviews and incident timelines. Design HA control planes with stacked or external etcd topologies. - Choose the managed cloud or platform service route only when this cost is justified by governance or scale: Stacked is compact and common, but external etcd isolates failure domains and capacity at the cost of greater infrastructure complexity.
When to avoid or be careful
- Avoid assuming HA is complete after YAML submission; the required behavior is concrete: Stacked HA colocates etcd with each control-plane node, while external etcd separates the data quorum from API, scheduler, and controller hosts and requires a separately managed service.
- Avoid treating the next symptom as random; check the owner and state with
kubectl get nodes -l node-role.kubernetes.io/control-plane; ETCDCTL_API=3 etcdctl endpoint health --clusterfirst: Stacked topology couples a control-plane node loss to the etcd quorum, while external etcd adds a second machine fleet, certificates, networking, and restoration process. - Avoid adopting a heavier platform wrapper before measuring its cost: Stacked is compact and common, but external etcd isolates failure domains and capacity at the cost of greater infrastructure complexity.
Native, manual, and managed paths for HA
kubectl get nodes -l node-role.kubernetes.io/control-plane; ETCDCTL_API=3 etcdctl endpoint health --cluster.Strengths: Stacked HA colocates etcd with each control-plane node, while external etcd separates the data quorum from API, scheduler, and controller hosts and requires a separately managed service.
Watch out: Stacked is compact and common, but external etcd isolates failure domains and capacity at the cost of greater infrastructure complexity. Recovery must also recognize this signal: Stacked topology couples a control-plane node loss to the etcd quorum, while external etcd adds a second machine fleet, certificates, networking, and restoration process.
kubectl get nodes -l node-role.kubernetes.io/control-plane; ETCDCTL_API=3 etcdctl endpoint health --cluster; the expected invariant is: Stacked HA colocates etcd with each control-plane node, while external etcd separates the data quorum from API, scheduler, and controller hosts and requires a separately managed service.Strengths: kubectl get nodes -l node-role.kubernetes.io/control-plane; ETCDCTL_API=3 etcdctl endpoint health --cluster gives immediate feedback without first building a platform layer.
Watch out: A manual change can hide drift, and unlike HA, it does not make this symptom self-documenting: Stacked topology couples a control-plane node loss to the etcd quorum, while external etcd adds a second machine fleet, certificates, networking, and restoration process.
kubectl get nodes -l node-role.kubernetes.io/control-plane; ETCDCTL_API=3 etcdctl endpoint health --cluster.Strengths: Platform controls can wrap this exact behavior in policy or dashboards: Stacked HA colocates etcd with each control-plane node, while external etcd separates the data quorum from API, scheduler, and controller hosts and requires a separately managed service.
Watch out: The added platform ownership buys value at this cost: Stacked is compact and common, but external etcd isolates failure domains and capacity at the cost of greater infrastructure complexity.
Interview signals & numbers to know
When this topic comes up
- Interview anchor: Stacked HA colocates etcd with each control-plane node, while external etcd separates the data quorum from API, scheduler, and controller hosts and requires a separately managed service.
- Trace HA to External etcd through Stacked etcd; the invariant is: Stacked HA colocates etcd with each control-plane node, while external etcd separates the data quorum from API, scheduler, and controller hosts and requires a separately managed service.
- Recognize the symptom: Stacked topology couples a control-plane node loss to the etcd quorum, while external etcd adds a second machine fleet, certificates, networking, and restoration process.
- Justify the cost: Stacked is compact and common, but external etcd isolates failure domains and capacity at the cost of greater infrastructure complexity.
- Verify with kubectl get nodes -l node-role.kubernetes.io/control-plane; ETCDCTL_API=3 etcdctl endpoint health --cluster instead of only inspecting YAML.
Benchmarks & rules of thumb
- 3
- control-plane or etcd members are a common baseline
- 2
- topologies compared: stacked and external
- 1
- stable load-balanced API endpoint fronts the control-plane members
Common mistakes & follow-ups
Common interview mistakes
- Debugging only the child object misses the HA owner contract: Stacked HA colocates etcd with each control-plane node, while external etcd separates the data quorum from API, scheduler, and controller hosts and requires a separately managed service.
- Ignoring this telltale condition leads to unrelated changes: Stacked topology couples a control-plane node loss to the etcd quorum, while external etcd adds a second machine fleet, certificates, networking, and restoration process.
- Repeating
kubectl get nodes -l node-role.kubernetes.io/control-plane; ETCDCTL_API=3 etcdctl endpoint health --clusterwithout an owner for remediation wastes retry cost. Stacked is compact and common, but external etcd isolates failure domains and capacity at the cost of greater infrastructure complexity.
Likely interviewer follow-ups
- How would API output and runtime evidence prove this behavior: Stacked HA colocates etcd with each control-plane node, while external etcd separates the data quorum from API, scheduler, and controller hosts and requires a separately managed service?
- Which owner object, logs, and Events would you inspect for this symptom-Stacked topology couples a control-plane node loss to the etcd quorum, while external etcd adds a second machine fleet, certificates, networking, and restoration process-?
- At what threshold would this cost become unacceptable: Stacked is compact and common, but external etcd isolates failure domains and capacity at the cost of greater infrastructure complexity?
kubectl get nodes -l node-role.kubernetes.io/control-plane; ETCDCTL_API=3 etcdctl endpoint health --cluster, name the failure, then justify the cost. Invariant: Stacked HA colocates etcd with each control-plane node, while external etcd separates the data quorum from API, scheduler, and controller hosts and requires a separately managed service. Failure: Stacked topology couples a control-plane node loss to the etcd quorum, while external etcd adds a second machine fleet, certificates, networking, and restoration process. Cost: Stacked is compact and common, but external etcd isolates failure domains and capacity at the cost of greater infrastructure complexity.Knowledge check
Put it into practice
Practice related interview Q&A
Apply High Availability (HA) Topologies (Stacked vs External etcd) with generative AI interview Q&A and hands-on practice.