Kubernetes Desired-State Reconciliation
How Kubernetes coordinates its control plane and worker nodes to reconcile desired state and run workloads.
From to Running Pods
The cluster works toward a declared target
Kubernetes uses a desired-state model: you describe what should run, and controllers work to make the cluster’s observed state match that description. The declared target is not the same as a report of what is currently running. Kubernetes API objects commonly express the target in spec; observed information is reported in status.
The work is divided across the cluster. The control plane makes cluster-wide decisions and manages nodes. Its API server exposes the Kubernetes API, etcd stores API data, the scheduler assigns Pods that do not yet have a node to suitable nodes, and the manager runs controllers that reconcile declared and actual state. Worker nodes provide the environment where application Pods run. On each node, the kubelet works to keep the ’s specified containers running with a container runtime compatible with the Container Runtime Interface. Network components provide connectivity and Service traffic handling; kube-proxy is common, but optional if an alternative provides equivalent Service behavior.
| When / step | What happens |
|---|---|
| A replica is missing | The Deployment requests three replicas, but only two Pods exist. |
| Controller reconciles | The Deployment’s controller creates another Pod to address the difference between requested and observed state. |
| Scheduler places Pod | The scheduler assigns the Pod to a suitable node. |
| Node starts containers | The node’s kubelet works with the container runtime to start the Pod’s containers. |
Following the three-replica example
Suppose a Deployment requests three replicas, but only two Pods exist. The requested count is the target; the two existing Pods are the observed state. The detects the gap and creates another . That new still needs a place to run, so the scheduler assigns it to a suitable node. On that worker node, the kubelet works with the container runtime to start its containers.
This division of responsibility is the key to understanding reconciliation: controllers respond to the difference between the declared and actual states, while the scheduler handles placement and node components handle running the containers. The sequence does not mean that the itself starts containers or chooses the node. It shows how control-plane decisions and worker-node execution cooperate to move the cluster toward the requested state.