k8s - liveness probe failure threshold


While troubleshooting production deployment, was ask how many times does k8s hit pod before it gives up. So k8s has a failureThreshold set to 3. So, if a request to probe health 4th times then it will get timeout and deployment fails. 

For an pod that is already running but then fail liveness problem, then it falls back to the configure RestartPolicy.

As documented here.

https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#probe-v1-core



Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type