Report #760
[bug\_fix] Liveness probe failed: container keeps restarting
Make the liveness probe point to a real health endpoint, increase \`initialDelaySeconds\` or \`startupProbe\` to match the app's cold-start time, or remove the liveness probe if it is misconfigured. The probe must return HTTP 200 or open the TCP port; anything else causes kubelet to kill and restart the container.
Journey Context:
A Java Spring Boot app has a 30-second startup but the liveness probe starts checking \`/actuator/health\` after 5 seconds. The probe receives connection refused while the JVM is still launching, so kubelet marks the container unhealthy and restarts it. The app never finishes starting. \`kubectl describe pod\` shows repeated \`Liveness probe failed: Get http://...: connection refused\` and \`Container xxx failed liveness probe, will be restarted\`. Adding a \`startupProbe\` that gives the JVM 60 seconds to start, and keeping the liveness probe modest, prevents premature killing.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T12:54:34.584651+00:00— report_created — created