Skip to content
Engineering Bible
Kubernetes

Kubernetes on the control loop

Kubernetes runs containers across many machines

  • It is an open source platform that runs containers on a group of machines, called a cluster.
  • It places containers on machines, restarts failed ones, scales them and routes traffic.
  • The newest version is v1.37, from August 2026. About three versions ship each year.

You declare the state you want, not the steps

  • You write a manifest: a YAML file that says what should exist, such as 3 copies of an app.
  • “kubectl apply -f app.yaml” sends it to the cluster, which stores it as an object.
  • Each object has a spec, the state you want, and a status, the state right now.

Controllers close the gap, forever

  • A controller is a loop that watches objects and moves the current state toward the spec.
  • Like a thermostat: you set a temperature, and it switches the heating until the room matches.
  • Delete a Pod by hand and a controller starts a new one, because the spec still says 3.
  1. Observe2 Pods are running
  2. Comparethe spec says 3
  3. Actstart 1 more Pod

then back to “Observe”

The loop never exits. When the states match, it keeps watching for the next change.

The control plane decides, nodes do the work

  • The API server is the front door. kubectl and every component talk only to it.
  • etcd is the key-value store behind it. It holds every object in the cluster.
  • The scheduler picks a node for each new Pod. The controller manager runs the controllers.
  • A node is a worker machine. Its kubelet starts containers through a container runtime.
  1. kubectlyou send a manifest
  2. API serverthe only way in
  3. etcdstores every object
  4. Scheduler and controllerspick nodes, close gaps
  5. kubelet on each nodestarts the containers
The three middle layers are the control plane. Your containers run on the nodes.

Labels and namespaces organize everything

  • A label is a key-value tag such as app=web. Selectors find objects by their labels.
  • A namespace groups objects and scopes their names, for example one per team.
  • Some objects, such as nodes, belong to the whole cluster and sit in no namespace.
Kubernetes in six pages1 / 6