Interview's MateKubernetes
Interview's Mate

Kubernetes

K8s · Workloads · GitOps · Cloud

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
Kubernetes topics
Lesson 145/ 160
08. Cluster Administration & Managed Cloud Kubernetes

High Availability (HA) Topologies (Stacked vs External etcd)

Design HA control planes with stacked or external etcd topologies.

AdvancedHA · Stacked etcd · External etcd3 quiz questions
Practice DevOps Q&A
In plain wordsDiagramTheoryStep by stepWhen to use itInterview cluesMistakes to avoidQuiz (3)Practice

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 --cluster and 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

Loading interactive 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.

Verify Stacked etcd, not only object creation

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.

Key takeaway: HA is implemented only when this invariant remains observable: 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.

Recover from Stacked etcd drift

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.

Key takeaway: Accept the trade-off consciously: Stacked is compact and common, but external etcd isolates failure domains and capacity at the cost of greater infrastructure complexity.

How it works, step by step

Step 1 of 4
Platform planner

1. 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.

HA contract → owned state
Key numbers at this step
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 --cluster in 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 --cluster first: 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

Repeatable infrastructure control
Best for: Design HA control planes with stacked or external etcd topologies. A concrete incident check is 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.

Manual cluster mutation
Best for: Quickly testing the Stacked etcd assumption with 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.

Managed cloud or platform service
Best for: Teams that need External etcd integrated with guardrails; the evidence path is 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 --cluster without 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?
Interview tip: Interview sequence: state the invariant, run 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

Loading quiz

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.

Open DevOps Q&A →Tech Learn Q&A
Previous topic
Node Maintenance Operations (cordon, drain, uncordon)
Next topic
Managed Kubernetes Overview (AWS EKS, Google GKE, Azure AKS)