What actually happens when you type `kubectl apply` and hit enter? Somewhere in a data center, a request lands on an API server, gets validated, written to a distributed database, picked up by a scheduler, assigned to a machine, and handed to a container runtime. Seconds later, your application is running. Most people never see that chain of events. Understanding it is the difference between operating Kubernetes confidently and treating it as a black box that occasionally breaks.
This guide walks through the moving parts of a Kubernetes cluster, why each one exists, and where teams commonly get tripped up in practice.
The Two Halves of Every Cluster
Every Kubernetes cluster splits into two logical halves: the control plane and the worker nodes. The control plane makes decisions. The nodes run workloads. That separation is the single most important idea in the whole architecture, because almost every failure mode and design tradeoff flows from it. (Enterprise AI Systems and Architecture)
The control plane typically runs on dedicated machines (or, in managed services, on infrastructure you never see). Worker nodes are the machines with the CPUs, memory, and GPUs that actually execute your containers. Small clusters can co-locate both, but production clusters separate them so that a runaway workload cannot starve the components responsible for keeping the cluster alive.
Inside the Control Plane

The control plane is not one program. It is a set of cooperating processes, and each has a narrow job.
The API Server: The Front Door
The kube-apiserver is the only component that talks directly to the cluster’s state store. Every other component, including the scheduler, the controllers, the kubelets on each node, and your `kubectl` client, communicates through it. This hub-and-spoke design means authentication, authorization, admission control, and validation all happen in one place.
When a request arrives, the API server checks who is asking, whether they are allowed, whether the object is valid, and whether any admission webhooks want to mutate or reject it. Only then does it persist the object. Practically speaking, this is why a misconfigured admission webhook can take down your ability to deploy anything at all, a mistake that has humbled plenty of platform teams.
etcd: The Source of Truth
Cluster state lives in etcd, a distributed key-value store that uses the Raft consensus algorithm to keep replicas in agreement. If you want to understand why etcd deserves respect, read the original Raft consensus paper by Ongaro and Ousterhout, which explains how a cluster of machines agrees on a shared log even when some of them fail. That is exactly the problem etcd solves for Kubernetes.
Two practical consequences follow. First, etcd is the only stateful component in the control plane, so backing it up is not optional. Lose etcd without a snapshot and you lose every Deployment, Secret, and Service definition in the cluster. Second, etcd is latency-sensitive. Running it on slow disks is one of the most common causes of mysterious cluster-wide sluggishness.
The Scheduler: Choosing Where Pods Land
The kube-scheduler watches for pods that have no node assigned and picks one. It works in two phases: it filters out nodes that cannot run the pod (insufficient resources, taints, affinity rules that do not match), then scores the remaining candidates and picks the best.
Since version 1.19, the scheduler has used a pluggable Scheduling Framework with extension points, which is why custom schedulers and scheduler plugins are viable in specialized environments. In practice, most “the scheduler put my pod in the wrong place” complaints trace back to node affinity, taints and tolerations, or topology spread constraints, not to the scheduler itself.
Controllers: The Reconciliation Loop
The kube-controller-manager bundles dozens of control loops. Each one watches a resource type, compares the desired state in the spec to the actual state in the status, and takes action to close the gap. A Deployment controller creates ReplicaSets; a ReplicaSet controller creates pods; a Node controller notices when a machine stops reporting.
This is the reconciliation loop, and it is the philosophical core of Kubernetes. The system is level-triggered, not edge-triggered: it does not react to a single event and forget, it keeps checking until reality matches the declaration. That is why a deleted pod reappears on its own. It is also why a broken controller can quietly churn through resources without anyone noticing.
For teams building on top of these primitives, the same reconciliation pattern shapes how higher-level platforms are designed, which is covered in more depth in this guide to enterprise AI systems and architecture. (AI inference architecture: A practical enterprise guide)
Inside the Worker Node
Nodes are simpler than the control plane but no less important. Each one runs a handful of components that connect it to the cluster and to the container runtime.
kubelet: The Node’s Agent
The kubelet is the agent that runs on every node. It watches the API server for pods assigned to its machine, then drives the container runtime to start, stop, and monitor them. It also reports node and pod status back upstream.
The kubelet talks to the runtime through the Container Runtime Interface (CRI), which was introduced as an alpha feature in Kubernetes 1.5 in December 2016. The CRI is why Kubernetes is not tied to Docker. When dockershim was deprecated in 1.20 and removed in 1.24, headlines claimed Kubernetes had killed Docker. It had not. It had simply stopped shipping an in-tree adapter for one runtime, and most clusters had already moved to containerd or CRI-O. (Kubernetes)
Container Runtime and Networking
Beyond the runtime, each node needs a CNI plugin to wire up pod networking. Kubernetes does not ship a default one. A freshly built cluster with no CNI installed will schedule pods that can never talk to each other, a classic first-day mistake.
The networking model itself is strict: every pod gets its own IP address, and every pod must be able to reach every other pod without network address translation. The Container Network Interface specification defines the plugin contract that implements this. It is worth reading the CNI specification directly if you have ever wondered why your overlay network behaves the way it does.
kube-proxy and Services
Pods come and go, so Kubernetes gives them a stable front through Services. Historically, kube-proxy implemented Service virtual IPs using iptables rules, with an IPVS mode that became stable in version 1.11 in June 2018. A newer nftables mode has been maturing in recent releases. Because this area changes between minor versions, always confirm the current status against the documentation for the version you actually run.
How the Pieces Fit Together
The flow below is the shortest accurate summary of a deployment:
- `kubectl` sends a Deployment manifest to the API server.
- The API server authenticates, authorizes, validates, and writes the object to etcd.
- The Deployment controller notices the new object and creates a ReplicaSet.
- The ReplicaSet controller creates the requested number of Pods.
- The scheduler assigns each pending Pod to a node.
- On each chosen node, the kubelet asks the runtime to pull the image and start the container.
- The CNI plugin assigns the Pod an IP; kube-proxy programs Service routing.
- Controllers keep watching and correcting drift, forever.
| Component | Role | Stateful? |
|---|---|---|
| kube-apiserver | Single entry point for all requests | No |
| etcd | Stores all cluster state | Yes |
| kube-scheduler | Assigns pods to nodes | No |
| kube-controller-manager | Runs reconciliation loops | No |
| kubelet | Runs pods on each node | No |
| Container runtime | Starts and stops containers | No |
| CNI plugin | Provides pod networking | No |
| kube-proxy | Implements Service routing | No |
Notice how little of that list is stateful. That is deliberate, and it is why the control plane can be scaled horizontally and replaced piece by piece.
High Availability and Scaling Patterns
For production, the standard pattern is three or five API servers behind a load balancer, with etcd running as an odd-sized quorum. Odd numbers matter because Raft needs a majority to make progress; a two-node etcd cluster is worse than a one-node cluster, since either failure halts writes.
A few practical lessons that only surface in real operations:
- Separate etcd disks from everything else. Shared, noisy storage is the top cause of slow writes and leader elections.
- Watch the API server, not only the nodes. Most “cluster is down” incidents are control plane saturation from a runaway controller or a client hammering the API.
- Test your etcd restore. A backup you have never restored is a hope, not a backup.
- Do not fight the scheduler with hard affinity. Prefer soft preferences and topology spread constraints so pods can still land somewhere when a zone degrades.
As clusters grow, the control plane increasingly becomes an intelligent layer that brokers requests across many workloads, a shift explored in this analysis of AI cloud architecture where infrastructure becomes intelligent. (Cloud Infrastructure and Architecture)
Where Teams Usually Get It Wrong
The most common architectural misunderstanding is treating the control plane as a monolith. It is not. Each component can fail independently, and each failure looks different. A dead scheduler means pods stay Pending. A dead controller-manager means Deployments stop reconciling but running pods keep serving traffic. A dead API server means nothing new happens, but existing containers keep running.
The second common mistake is assuming Kubernetes provides networking out of the box. It provides a networking model and a plugin contract, not an implementation.
The third is underestimating how much the control plane costs to run well. Managed services exist precisely because operating etcd and highly available API servers is unglamorous, high-stakes work. Understanding the internals still matters, though, because you will debug against them, and because the same patterns show up in the broader cloud infrastructure and architecture landscape that modern platforms are built on.
Conclusion
Kubernetes architecture is a small number of ideas repeated at scale: one front door, one source of truth, a scheduler that places work, and controllers that never stop reconciling. Once that shape is clear, the documentation stops reading like a list of components and starts reading like a design. Whether you run a three-node lab or a multi-region fleet, the mental model stays the same, and the debugging gets a lot faster when you know which loop to look at.
What is the difference between the control plane and worker nodes?
The control plane decides what should happen: it accepts requests, stores desired state, schedules pods, and runs reconciliation loops. Worker nodes do the work: they run the kubelet, a container runtime, and the pods themselves. In production they are usually separate machines so that workloads cannot starve the components keeping the cluster healthy.
Why does Kubernetes need etcd?
etcd is the only place cluster state is persisted. Every Deployment, Service, Secret, and ConfigMap lives there. Because it uses the Raft consensus algorithm, it can survive the loss of a minority of its members. Losing etcd without a backup means losing the cluster’s declared state entirely, which is why etcd backups are treated as a first-class operational requirement.
Did Kubernetes really kill Docker?
No. Kubernetes removed dockershim, its built-in adapter for the Docker runtime, in version 1.24 in May 2022. The Container Runtime Interface lets Kubernetes work with any compliant runtime, and most clusters had already moved to containerd or CRI-O. Docker images still run fine; only that one integration path was retired. (Kubernetes Overview)
Why are my pods stuck in Pending?
Pending almost always means the scheduler could not find a suitable node. Common causes are insufficient CPU or memory requests, node affinity rules that match no node, taints without matching tolerations, or persistent volume claims that cannot bind. Check the pod’s events first; the scheduler usually states the reason plainly.
Does Kubernetes include networking by default?
It defines a networking model but ships no default implementation. Every pod must get its own IP and reach every other pod without NAT, and a CNI plugin enforces that contract. A cluster built without a CNI plugin will schedule pods that cannot communicate, which is one of the most common first-day surprises.
How many control plane nodes do I need for high availability?
Three is the usual starting point, and five for larger or busier clusters. etcd needs an odd-sized quorum because Raft requires a majority to commit writes. A two-node etcd cluster is actually less resilient than a single node, since the failure of either member halts writes entirely.







