Liveness probe restart delay fixed to 30 seconds?

Hello, novice here.

While learning and trying out liveness probe myself, I’ve noticed that it takes 30 seconds for the container to restart after failing the liveness check.

On the docs, it says wait 30 seconds.

Wait another 30 seconds, and verify that the container has been restarted

Is this 30 seconds fixed?

I’ve tried settings periodSeconds and failureThreshold to 1 but has no effect.


Seems like no one else knows. Perhaps it is really hardcoded to 30 seconds. Will try to look at kubernetes source code as my next approach.

kubectl -n production get events | grep -i “Liveness probe failed”