Liveness and Readiness Probes
PronunciationLYV-nis and RED-ee-nis PROHBZ
Definition
In Kubernetes, a liveness probe checks whether a container is still alive (if not, it is restarted); a readiness probe checks whether it can take traffic (if not, it is taken out of the load balancer); a startup probe waits for slow starts.
Where you hear it
In Kubernetes YAML, deployment reviews and incidents like "pods restart in a loop" or "traffic hits an unready pod".
Examples
The readiness probe fails until the database connection is up.
A liveness probe that is too strict restarts healthy pods.
The liveness probe restarted the pod after it stopped responding for a minute.
Common mistake
Making the liveness probe depend on the database. A database outage then restarts every app pod and makes it worse.
Don't confuse with
A health check endpoint, the URL a probe calls. The probe is the Kubernetes mechanism that uses it.
Say it at work
- In a meeting or chat
Add a readiness probe on
/healthz. - In an email or ticket
The pod keeps restarting; check the liveness probe.
Keep exploring
More in DevOps & Cloud