Liveness probe
Definition
A liveness probe is a periodic check, such as Kubernetes' livenessProbe, whose repeated failure causes the orchestrator to kill and restart the container.
In practice
It catches processes that are running but will never recover on their own: a deadlock, an exhausted event loop, a corrupted internal state. The check should be cheap and local, testing only that the process can make progress, typically an in-process /livez handler.
A liveness probe that checks dependencies is dangerous: when the database slows down, every pod fails liveness and is restarted at once, turning a slowdown into an outage. Slow starters need a startup probe or a generous initial delay, or they are killed before they finish booting. Traffic decisions belong to the readiness probe.
Example
livenessProbe: httpGet /livez, periodSeconds: 10, failureThreshold: 3 restarts a container whose handler has been unresponsive for about 30 seconds.