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.
- Observe2 Pods are running
- Comparethe spec says 3
- Actstart 1 more Pod
then back to “Observe”
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.
- kubectlyou send a manifest
- API serverthe only way in
- etcdstores every object
- Scheduler and controllerspick nodes, close gaps
- kubelet on each nodestarts the containers
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.