-
On https://www.containiq.com/post/kubernetes-startup-probe I read:
But, this is not what I'm observing. It takes at least a minute (up to 5 minutes) for my container and service to fully start-up, so I configure the startup probe as follows:
I also have liveness probe configured
The problem is that see this error as soon (i.e. within 5-15 seconds) as Kubernetes creates the container with my app:
I can avoid the error with setting long enough As far as I understand all the web resources I've found and read, configuring Could anyone shed any light on why the startup probe could fail to delay the liveness probe? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
i think the livenessProbe kicks in bcs the startupProbe succeeded. I would suggest that the startup and livenessProbe use the same endpoint ( /healthz in your case), but the startupProbe have a less strict failure threshhold which prevents a failure on startup. Smtg like described here. |
Beta Was this translation helpful? Give feedback.
i think the livenessProbe kicks in bcs the startupProbe succeeded. I would suggest that the startup and livenessProbe use the same endpoint ( /healthz in your case), but the startupProbe have a less strict failure threshhold which prevents a failure on startup. Smtg like described here.