Give the startup script, init.sh, enough time to complete before calling /healthz for the first time. When there are no migrations to apply, it generally takes a few seconds to complete. If there are migrations to apply, it will likely take longer. In that case, the initial health check will fail, but a subsequent or later retry will succeed.
Give the startup script,
init.sh
, enough time to complete before calling/healthz
for the first time. When there are no migrations to apply, it generally takes a few seconds to complete. If there are migrations to apply, it will likely take longer. In that case, the initial health check will fail, but a subsequent or later retry will succeed.Set
initialDelaySeconds
accordingly.