liveBook · Manning

Kubernetes controller

A Kubernetes controller is a control-loop component that observes resource state and takes action to move actual state toward desired state.

How 3 Manning books explain it

Kubernetes in Action, Second Edition

A Kubernetes controller is a control loop that observes cluster state and takes actions to move it toward a specified desired state.

How it is used
Keeps API-defined application resources aligned with their desired state as workloads are deployed, scaled, and maintained.
How deep it goes
Explains the reconciliation loop through ReplicaSet pod counts, selectors, ownership, and controller handoffs; stops short of controller implementation code.
Examples
Uses deleted and excess pods, a scaled Deployment, controller Events, and a failed readiness probe to show controller behavior and limits.
What you can do after
Diagnose/debug with it by checking why pods reappear, why an owned ReplicaSet change is reversed, and which controller acted.

Read how Kubernetes in Action, Second Edition explains Kubernetes controller →

Kargo in Action

A control loop that observes Kubernetes resources and acts to move their actual state toward the declared desired state.

How it is used
Governs artifact promotion by continuously reconciling Kubernetes resources instead of relying on scheduled checking jobs.
How deep it goes
Defines the watch-and-reconcile loop and works through a soak condition, but does not detail controller implementation.
Examples
Contrasts a scheduled soak-checking job with a controller and traces Warehouse, Stage, and Promotion controllers through a first promotion.
What you can do after
Diagnose/debug with it by describing the affected resource, checking its controller, and verifying controller health during installation.

Read how Kargo in Action explains Kubernetes controller →

Kubernetes for Developers

A Kubernetes controller is a control-loop component that observes resource state and takes actions to move it toward the desired state.

How it is used
Uses declarative requirements to keep deployed workloads aligned with their intended state.
How deep it goes
Explains Deployment-driven Pod creation, replacement, and rescheduling, but does not detail controller implementation internals.
Examples
Demonstrates three replicas, container-version updates, eviction recovery, and the contrast between managed and direct Pods.
What you can do after
Operate/configure Deployments by declaring replica and container requirements, then applying YAML changes through Kubernetes.

Read how Kubernetes for Developers explains Kubernetes controller →

Also covered in

What to know first

Related concepts

Questions about Kubernetes controller

What is Kubernetes controller?

A Kubernetes controller is a control-loop component that observes resource state and takes action to move actual state toward desired state.

Which Manning books explain Kubernetes controller?

Kubernetes in Action, Second Edition, Kargo in Action and Kubernetes for Developers.

What should I know before learning Kubernetes controller?

Manning books that teach Kubernetes controller usually introduce container and state first.

What is the difference between Kubernetes controller and StatefulSet?

A Kubernetes controller is a control-loop component that observes resource state and takes action to move actual state toward desired state. A StatefulSet is a Kubernetes workload resource that manages stateful Pods with stable identities, ordered operations, and persistent storage associations.

What kinds of Kubernetes controller are there?

Kinds of Kubernetes controller include promotion control plane.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.