venkatesh
venkatesh

Reputation: 445

liveness and readiness probe count

I had a doubt on the count shown inside the pod as liveness and readiness probe failures. Does the count increment for every failure OR does the count increment after the failureThreshold count is breached? Thanks in advance for your inputs.

Upvotes: 0

Views: 1277

Answers (2)

Shivani
Shivani

Reputation: 256

When a pod starts and the probe fails, Kubernetes will try failureThreshold times before it give up. Giving up in case of a liveness probe means restarting the pod. In case of a readiness probe the pod will be marked Unready. failureThreshold- Defaults value is 3 and Minimum value is 1.

Upvotes: 0

Sahadat Hossain
Sahadat Hossain

Reputation: 4351

It counts increment for every failure. If the count passes the failureThreshold count then it restarts the pod according to the restarting policy and also depending the probes (differently for liveness and readiness probe). Kubernetes try a probe failureThreshold times then give up. For liveness probe it does restart the container and for readiness probe the Pod will be marked Unready.

Upvotes: 1

Related Questions