Liveness probe failed ... Container will be restarted (also Startup probe failed)
The kubelet’s liveness (or startup) check failed enough times that it killed and restarted the container.
Liveness probe failedContainer will be restartedStartup probe failedfailed liveness probe, will be restarted Meaning
Liveness probes restart stuck apps — but a probe that’s too strict restarts healthy ones: slow JVM/Rails startup, GC pauses, heavy load or a dependency check inside the endpoint. The restarts then look like CrashLoopBackOff with exit code 137/143.
Common causes
- Startup longer than initialDelaySeconds × failureThreshold
- timeoutSeconds too short under load
- Probe hits an endpoint that checks the database
- Wrong port/path
⚡ Quick fix
- Add a startupProbe for slow starts
- Raise timeoutSeconds/failureThreshold
- Make liveness check only the process itself, not dependencies
Detailed fix by platform
YAML
- bash
startupProbe: httpGet: { path: /healthz, port: 8080 } failureThreshold: 30 periodSeconds: 10 livenessProbe: httpGet: { path: /healthz, port: 8080 } timeoutSeconds: 3 failureThreshold: 3
How to diagnose
- Events — Liveness/Startup failure messages
- Timing — Restart time vs startup duration
- Endpoint — What does it check?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Kubernetes
- cannot re-use a name that is still in use Error: INSTALLATION FAILED: cannot re-use a name that is still in use
- error converting YAML to JSON error converting YAML to JSON: yaml: line 12: did not find expected key
- FailedCreatePodSandBox Failed to create pod sandbox: plugin type="calico" failed (add): ... (FailedCreatePodSandBox)
Other ways to find it
Where this error sits
Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 13 Oct 2026