Sobes.tech
Senior

What happens if the liveness probe fails?

sobes.tech AI

Answer from AI

If the liveness probe in Kubernetes fails, it means that the container is considered 'not alive'. As a result, kubelet initiates a restart of this container to restore its functionality.

A liveness probe is a check mechanism that determines whether the application inside the container is in a state where it can serve requests. If the check fails for a specified number of attempts, the container is killed and restarted.

Thus, the liveness probe helps automatically recover applications that have become unresponsive or stopped working correctly, increasing system resilience.