Control Plane Components (kube-apiserver, etcd, kube-scheduler, kube-controller-manager)
Map how the API server, etcd, scheduler, and controller manager keep cluster intent alive.
In plain words
The control plane is a planning office: the reception desk records requests, the ledger stores them, schedulers assign work, and controllers chase unfinished orders. The simple Kubernetes rule is: The API server validates and persists API operations in etcd, the scheduler chooses nodes, and controller-manager loops create the child resources that move observed state toward intent.
Think of it like…
The control plane is a planning office: the reception desk records requests, the ledger stores them, schedulers assign work, and controllers chase unfinished orders.
Where you’ve seen it
A cluster operator validates a small change and runs kubectl get componentstatuses; kubectl get --raw=/readyz?verbose. Expected evidence: The API server validates and persists API operations in etcd, the scheduler chooses nodes, and controller-manager loops create the child resources that move observed state toward intent. If the run instead shows this symptom, stop and restore the last known state: An unhealthy etcd write path can make the control plane accept no durable state, while a healthy read path alone cannot prove the cluster can schedule and reconcile.
Words you’ll hear
- API Server
- For this lesson, API Server is the controlling idea: The API server validates and persists API operations in etcd, the scheduler chooses nodes, and controller-manager loops create the child resources that move observed state toward intent.
- etcd
- etcd is the checkpoint; run
kubectl get componentstatuses; kubectl get --raw=/readyz?verboseand inspect the owner chain. An unhealthy etcd write path can make the control plane accept no durable state, while a healthy read path alone cannot prove the cluster can schedule and reconcile. - Scheduler
- Scheduler is the outcome to preserve; the cost is explicit: Control-plane high availability removes a single machine failure, but quorum, certificates, upgrades, and network latency remain shared failure domains.
- Verification evidence
- The evidence command is
kubectl get componentstatuses; kubectl get --raw=/readyz?verbose. It connects the declaration to this behavior: Map how the API server, etcd, scheduler, and controller manager keep cluster intent alive.
Visual diagram
Theory & deep dive
How API Server reaches the intended state
Map how the API server, etcd, scheduler, and controller manager keep cluster intent alive. The API server validates and persists API operations in etcd, the scheduler chooses nodes, and controller-manager loops create the child resources that move observed state toward intent.
The concrete checkpoint is kubectl get componentstatuses; kubectl get --raw=/readyz?verbose; compare the API Server owner, etcd state, and Scheduler outcome instead of treating YAML acceptance as proof.
Run kubectl get componentstatuses; kubectl get --raw=/readyz?verbose after the change and correlate the result with Events and the owning object. The API server validates and persists API operations in etcd, the scheduler chooses nodes, and controller-manager loops create the child resources that move observed state toward intent.
etcd: failure boundary and production cost
An unhealthy etcd write path can make the control plane accept no durable state, while a healthy read path alone cannot prove the cluster can schedule and reconcile. The prerequisite contract is concrete: The API server validates and persists API operations in etcd, the scheduler chooses nodes, and controller-manager loops create the child resources that move observed state toward intent.
Control-plane high availability removes a single machine failure, but quorum, certificates, upgrades, and network latency remain shared failure domains. A safe design limits blast radius, records the last good configuration, and uses kubectl get componentstatuses; kubectl get --raw=/readyz?verbose as a deterministic rollback checkpoint.
Capture the current state with kubectl get componentstatuses; kubectl get --raw=/readyz?verbose, then correct the controlling manifest rather than patching a child object; the relevant divergence signal is specific: An unhealthy etcd write path can make the control plane accept no durable state, while a healthy read path alone cannot prove the cluster can schedule and reconcile.
How it works, step by step
Step 1 of 41. Model the cluster contract
Start from a minimal API, context, or node condition and make this contract explicit: The API server validates and persists API operations in etcd, the scheduler chooses nodes, and controller-manager loops create the child resources that move observed state toward intent.
- Goal
- Map how the API server, etcd, scheduler, and controller manager keep cluster intent alive.
- Owner
- API Server
When to use it & trade-offs
What it is
Map how the API server, etcd, scheduler, and controller manager keep cluster intent alive. The API server validates and persists API operations in etcd, the scheduler chooses nodes, and controller-manager loops create the child resources that move observed state toward intent.
Why it matters: An unhealthy etcd write path can make the control plane accept no durable state, while a healthy read path alone cannot prove the cluster can schedule and reconcile. The invariant at risk is specific: The API server validates and persists API operations in etcd, the scheduler chooses nodes, and controller-manager loops create the child resources that move observed state toward intent. The quickest fact check before changing the design is kubectl get componentstatuses; kubectl get --raw=/readyz?verbose.
When to reach for it
- Use API Server to enforce this invariant: The API server validates and persists API operations in etcd, the scheduler chooses nodes, and controller-manager loops create the child resources that move observed state toward intent.
- Use etcd evidence from
kubectl get componentstatuses; kubectl get --raw=/readyz?verbosein reviews and incident timelines. Map how the API server, etcd, scheduler, and controller manager keep cluster intent alive. - Choose the platform-level abstraction route only when this cost is justified by governance or scale: Control-plane high availability removes a single machine failure, but quorum, certificates, upgrades, and network latency remain shared failure domains.
When to avoid or be careful
- Avoid assuming API Server is complete after YAML submission; the required behavior is concrete: The API server validates and persists API operations in etcd, the scheduler chooses nodes, and controller-manager loops create the child resources that move observed state toward intent.
- Avoid treating the next symptom as random; check the owner and state with
kubectl get componentstatuses; kubectl get --raw=/readyz?verbosefirst: An unhealthy etcd write path can make the control plane accept no durable state, while a healthy read path alone cannot prove the cluster can schedule and reconcile. - Avoid adopting a heavier platform wrapper before measuring its cost: Control-plane high availability removes a single machine failure, but quorum, certificates, upgrades, and network latency remain shared failure domains.
Native, manual, and managed paths for API Server
kubectl get componentstatuses; kubectl get --raw=/readyz?verbose.Strengths: The API server validates and persists API operations in etcd, the scheduler chooses nodes, and controller-manager loops create the child resources that move observed state toward intent.
Watch out: Control-plane high availability removes a single machine failure, but quorum, certificates, upgrades, and network latency remain shared failure domains. Recovery must also recognize this signal: An unhealthy etcd write path can make the control plane accept no durable state, while a healthy read path alone cannot prove the cluster can schedule and reconcile.
kubectl get componentstatuses; kubectl get --raw=/readyz?verbose; the expected invariant is: The API server validates and persists API operations in etcd, the scheduler chooses nodes, and controller-manager loops create the child resources that move observed state toward intent.Strengths: kubectl get componentstatuses; kubectl get --raw=/readyz?verbose gives immediate feedback without first building a platform layer.
Watch out: A manual change can hide drift, and unlike API Server, it does not make this symptom self-documenting: An unhealthy etcd write path can make the control plane accept no durable state, while a healthy read path alone cannot prove the cluster can schedule and reconcile.
kubectl get componentstatuses; kubectl get --raw=/readyz?verbose.Strengths: Platform controls can wrap this exact behavior in policy or dashboards: The API server validates and persists API operations in etcd, the scheduler chooses nodes, and controller-manager loops create the child resources that move observed state toward intent.
Watch out: The added platform ownership buys value at this cost: Control-plane high availability removes a single machine failure, but quorum, certificates, upgrades, and network latency remain shared failure domains.
Interview signals & numbers to know
When this topic comes up
- Interview anchor: The API server validates and persists API operations in etcd, the scheduler chooses nodes, and controller-manager loops create the child resources that move observed state toward intent.
- Trace API Server to Scheduler through etcd; the invariant is: The API server validates and persists API operations in etcd, the scheduler chooses nodes, and controller-manager loops create the child resources that move observed state toward intent.
- Recognize the symptom: An unhealthy etcd write path can make the control plane accept no durable state, while a healthy read path alone cannot prove the cluster can schedule and reconcile.
- Justify the cost: Control-plane high availability removes a single machine failure, but quorum, certificates, upgrades, and network latency remain shared failure domains.
- Verify with kubectl get componentstatuses; kubectl get --raw=/readyz?verbose instead of only inspecting YAML.
Benchmarks & rules of thumb
- 4
- core components named in interviews
- 2n+1
- odd etcd quorum members are required for tolerated failures
- 1
- control-plane API remains the serialization point for cluster state
Common mistakes & follow-ups
Common interview mistakes
- Debugging only the child object misses the API Server owner contract: The API server validates and persists API operations in etcd, the scheduler chooses nodes, and controller-manager loops create the child resources that move observed state toward intent.
- Ignoring this telltale condition leads to unrelated changes: An unhealthy etcd write path can make the control plane accept no durable state, while a healthy read path alone cannot prove the cluster can schedule and reconcile.
- Repeating
kubectl get componentstatuses; kubectl get --raw=/readyz?verbosewithout an owner for remediation wastes retry cost. Control-plane high availability removes a single machine failure, but quorum, certificates, upgrades, and network latency remain shared failure domains.
Likely interviewer follow-ups
- How would API output and runtime evidence prove this behavior: The API server validates and persists API operations in etcd, the scheduler chooses nodes, and controller-manager loops create the child resources that move observed state toward intent?
- Which owner object, logs, and Events would you inspect for this symptom-An unhealthy etcd write path can make the control plane accept no durable state, while a healthy read path alone cannot prove the cluster can schedule and reconcile-?
- At what threshold would this cost become unacceptable: Control-plane high availability removes a single machine failure, but quorum, certificates, upgrades, and network latency remain shared failure domains?
kubectl get componentstatuses; kubectl get --raw=/readyz?verbose, name the failure, then justify the cost. Invariant: The API server validates and persists API operations in etcd, the scheduler chooses nodes, and controller-manager loops create the child resources that move observed state toward intent. Failure: An unhealthy etcd write path can make the control plane accept no durable state, while a healthy read path alone cannot prove the cluster can schedule and reconcile. Cost: Control-plane high availability removes a single machine failure, but quorum, certificates, upgrades, and network latency remain shared failure domains.Knowledge check
Put it into practice
Practice related interview Q&A
Apply Control Plane Components (kube-apiserver, etcd, kube-scheduler, kube-controller-manager) with generative AI interview Q&A and hands-on practice.