Journeys · Kubernetes · L1
Readiness and liveness probes
The kubelet asks every container two questions, on a timer. One answer moves traffic. The other restarts the container.
✓ Validated on v1.37.2 · validation Run 1 · 2026-11-21Preview
The 30-second answer
The kubelet on the node runs every probe itself, on its own timer. A startup probe goes first and holds the other two back. A readiness probe that fails failureThreshold times in a row sets the Pod's Ready condition to False. The EndpointSlice controller marks the endpoint not ready, and kube-proxy removes it from the Service's rules. Nothing restarts. A liveness probe that fails failureThreshold times in a row makes the kubelet kill the container and start a new one in the same Pod. The restart count goes up by one.
Mental model
A dosa counter with a floor captain. Every two seconds the captain asks the cook if he can take orders. If the cook says no twice in a row, the captain turns the counter's sign to closed. Customers go to the other counter. The captain also checks every three seconds that the cook is awake. Three misses in a row, and the captain sends the cook home and brings in a fresh one.
Where the analogy breaks
A real captain would notice a sleeping cook at once. The kubelet only knows what its probe returns, and only at the next tick. It cannot tell a slow cook from a dead one. Set the thresholds wrong and it sends a healthy cook home, or keeps a broken one behind an open sign.
🔒 Free account
Sign up free to play this journey
A free account unlocks every scenario, journey and exam, and saves your progress. No payment, ever.