Self-Healing & Autoscaling

The harbour master’s foreman watching the crew: who’s actually working, who needs swapping out, and when to call in more hands.
Before you start. From One Crate to a Fleet (why Kubernetes) gave you the loop that keeps checking what’s running against what you asked for and fixes the gap; The Harbor Master (pods, deployments, services) gave you the objects it watches - Pods, the crates it keeps at a fixed count. Kubernetes is the harbour master from The Harbor Master (pods, deployments, services): the program that keeps a fleet of machines running the containers you asked for, and keeps checking. This lesson is what that loop has to do once a headcount stops being enough of an answer: ask whether each crate is actually fit for work, and how many you even need right now.