Kubernetes Deployment restartPolicy alternatives

8/21/2019

I have a Deployment configuration that keeps a certain amount of Pods alive. However due to some strange circumstances these Pods fail the readiness probes sometimes and do not recover after a restart thus requiring me to manually delete the Pod from the Replica Set.

A solution to this would be to set the Pod restartPolicy to Never but that is actually not supported https://github.com/kubernetes/kubernetes/issues/24725.

My question is what alternatives are there to make it so that if a Pod has failed it's readiness probe then the Pod would be deleted.

-- Homulvas
kubernetes

0 Answers