Kubernetes

Explain liveness probes

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

Liveness probes is a useful mechanism used for restarting the container when a certain check/probe, the user has defined, fails.

For example, the user can define that the command cat /app/status will run every X seconds and the moment this command fails, the container will be restarted.

You can read more about it in kubernetes.io