Kubernetes as a reconciliation loop
Kubernetes is usually taught as a vocabulary — pods, deployments, services, ingresses, operators — and learned as an endless list of nouns whose relationships never quite settle. There is one idea underneath all of it. Understand the idea and the nouns become consequences; skip it and no amount of tutorial helps.
The idea
You declare the state you want. A controller continuously observes the state that exists and acts to close the gap. Forever.
you ──▶ desired state (stored)
│
┌────┴─────────────────────┐
│ observe actual state │
│ diff against desired │ ← runs continuously
│ take action to converge │
└──────────────────────────┘
Compare that with the deployment model it replaced. A script is imperative and one-shot: it makes the world correct at the moment it runs, and drift afterwards is nobody's job. A reconciliation loop is correct continuously — kill a pod and it returns, not because a handler fired on a death event, but because the next pass through the loop observed a difference.
There is no event. There is only a difference. Sit with that sentence, because five confusing behaviours fall directly out of it.
What follows
- It is level-triggered, not edge-triggered. Missing a notification is harmless; the loop simply looks again. This is why controllers can crash, restart and carry on with no recovery logic — and it is a design lesson worth stealing for your own systems.
- "Applied successfully" means "your intent was recorded". It does not mean anything is running. You asked for ten replicas and have three because there is no capacity — nothing errored, the system is still trying, and it will keep trying indefinitely. More confusion comes from this one gap than from every piece of Kubernetes vocabulary combined.
- Eventual consistency, in the control plane. Tier 6's entire vocabulary applies to the thing managing your infrastructure. Convergence takes time and is not guaranteed to complete.
- The state store is the thing that must not go down. Desired state lives in a consensus-backed store, and Lesson 6.03 already told you why it needs a majority and what happens when it loses one.
- Extension has exactly one shape. A new resource type plus a controller running the same loop is how everything is added — which is why the ecosystem looks the way it does, and why an "operator" is not a new concept but the same one pointed at a database.
What it gives you, as capabilities
Stated as things you would otherwise build: a scheduler that places work onto machines by fit (9.07's capacity planning, automated and continuous), service discovery and load balancing so instances can move without anyone updating an address (4.01), a rollout mechanism that is 9.05's rolling deploy as a built-in primitive rather than a script, and a single uniform way to describe all of it that works the same for every workload.
What it costs
It is a distributed system that you now operate in addition to the one you were building. It has its own failure modes, its own upgrade treadmill, its own security surface, and a vocabulary every engineer on the team must acquire before they can debug anything.
Lesson 14.07's test is the right one to apply, and it is not rhetorical: does this platform remove at least two things for every one it adds? For an organisation running many services across many teams, it removes a great deal. For four services with steady traffic, a managed container runtime gives you most of the benefit and none of the control plane — and the marker from 14.07 holds here too: it earns its place when you notice you are building the same scheduling, rollout and discovery machinery for the third time.
Adopting the object model without the loop model — treating apply as a deploy command that either works or fails. Teams in that position are baffled when a resource they deleted comes back (a controller still holds the desired state), when a manifest "succeeded" and nothing is running (intent recorded, reality unreachable), and when a change appears to take effect twenty minutes later (convergence is not instantaneous). Every one of those is the loop behaving exactly as designed. The mental model is not "I ran a command"; it is "I changed a target, and something is now working toward it" — so the operational question is never did my command succeed but has reality converged, and if not, what is stopping it.
The tradeoff sheet
- Problem solved
- Manually placing, restarting, scaling and connecting containers across a fleet, and doing it identically after every failure.
- Rejected, and why
- A handful of VMs with a process manager and a load balancer is far simpler and sufficient for a long time. Managed container services give most of the benefit with a fraction of the surface.
- The trade
- A large distributed system to learn and operate, sitting under your application, with failure modes that require its own expertise to diagnose.
- First to break at 10x
- The control plane and etcd before your workloads. At 10x objects, reconciliation slows, and the abstraction that made everything uniform makes everything degrade together.
- What it does to the bill
- Control plane charges plus the nodes, and consistently poor utilisation until requests and limits are set honestly — which is where most of the waste in a cluster lives.
- Day-2 operations
- Cluster upgrades are the recurring operation, and they are the one most teams defer until the version is unsupported. Budget for them quarterly.
Going deeper
- Kubernetes: Up and Running Burns, Beda, Hightower
The reconciliation model explained by people who built it, rather than as a list of YAML fields. - Borg, Omega, and Kubernetes Burns et al., ACM Queue 2016
Ten years of lessons from Google’s cluster managers, including what they would not repeat.