Kubernetes architecture: control plane vs nodes
Describe the Kubernetes architecture. What runs on the control plane and what runs on the nodes?
TL;DR
Kubernetes is a declarative system: you store the desired state in the API, and controllers continuously work to make the actual state match it (a reconciliation loop). The control plane is the brain: the API server (the only entry point, which validates and stores objects), etcd (the key-value store holding all cluster state), the scheduler (assigns new Pods to nodes based on resources and constraints), and the controller manager (runs controllers such as Deployment and ReplicaSet). Each worker node runs the kubelet (starts and monitors the Pods assigned to it), a container runtime (containerd), and kube-proxy or a CNI plugin for Service networking.
Key points
- Every component talks only to the API server; nothing else talks to etcd directly.
- Components watch the API for changes rather than polling.
- What happens on
kubectl applyof a Deployment: API server stores it → Deployment controller creates a ReplicaSet → ReplicaSet controller creates Pods → scheduler binds each Pod to a node → that node's kubelet tells the runtime to pull and start the containers → kubelet reports status back. - etcd needs an odd number of members (3 or 5) for quorum. Back it up; losing it means losing the cluster.
- In managed Kubernetes (EKS, GKE, AKS), the cloud runs the control plane and you manage the nodes and workloads.
- Self-healing: if a node dies, controllers notice the missing Pods and create replacements elsewhere.
Example
kubectl ──► API server ◄──► etcd
▲ ▲
scheduler controller-manager
│
┌────────┴────────┐
node 1 node 2
kubelet kubelet
containerd containerd
kube-proxy kube-proxyCommon follow-ups
- What happens if the control plane goes down? Running Pods keep running, but nothing new can be scheduled, scaled or healed until it's back.
- What's an operator? A custom controller plus custom resources (CRDs) that encodes operational knowledge for one app, such as a database.
What interviewers look for
Tip
Name each component and its job, explain the desired-state reconciliation loop, and trace a kubectl apply end to end.
- Red flag: thinking the scheduler starts containers.