Kubernetes & Operations
Liveness probes: when to restart
Some failures leave a process running and useless. A liveness probe is how Kubernetes finds those, and a careless one is how Kubernetes turns a slow database into a restart storm.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Kubernetes & Operations
- NetworkPolicyBeginner · 4 min
NetworkPolicy specifies allowed ingress and egress.
- Readiness probes: when to send trafficIntermediate · 5 min
A container that has started is not a container that can serve. The readiness probe is the switch that keeps a warming Pod out of the Service, and it is also what makes…
- Startup probeBeginner · 4 min
Startup probe delays liveness and readiness until boot completes.
- Control plane architectureBeginner · 5 min
Kubernetes control-plane components coordinate desired state and node assignment; kubelets run Pods on nodes.
- etcd durabilityIntermediate · 4 min
Explain why etcd must write every request to disk on a majority of members before it acknowledges it, and why slow disks can trigger elections across the cluster.
- API server watchesIntermediate · 4 min
Explain how the API server streams changes through watches that resume from a resourceVersion, and why a 410 Gone response means the client must list again and rebuild…