Is there a way to limit the number of restarts of pod?

12/30/2021

I have implemented liveness probe in my kubernetes deployment file. as of now it attempts restart infinite number of times. Is there a way to limit this number of restart attempts?

-- Aman Deep
kubernetes
kubernetes-deployment
livenessprobe

0 Answers