Kubernetes 02: The Reconcile Loop

The loop that makes the last board’s declared fact keep being true. Follows Kubernetes 01: Imperative to Declarative, which said what a Kubernetes object is; this is the machine that enforces it, and it belongs to the build in Build Your Own Kubernetes - From Scratch.
Before you start. This series builds a small copy of Kubernetes: a program that keeps a fleet of machines running the programs you asked for, and restarts them when they die. So far our build can do one thing. It lets you write down what you want, say three copies of a program, as a plain file. Kubernetes calls one running copy a pod. Nothing yet checks that file against what is actually running. This lesson builds the part that closes that gap.