Search code examples
kubernetesprobelivenessprobe

How does the failureThreshold work in liveness & readiness probes? Does it have to be consecutive failures?


I'm unable to find any references other than this link that confirms that the failure has to be consecutive. https://github.com/kubernetes/website/issues/37414

Background: Our Java application is getting restarted every day because of liveness probe failure. The application's access logs don't show 3 consecutive failures. So wanted to understand the behavior of probes.


Solution

  • Yes the probes have to be consecutive, according to the api docs:

    Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.