Probes that kill healthy pods
A liveness probe stricter than your application is slow will restart something that was about to answer. How to tell a probe problem from an application problem, and where a startup probe belongs.
Why would a liveness probe restart a pod that is working?
A liveness probe that is stricter than the application is slow makes Kubernetes restart something that was about to answer. The usual causes are a timeout shorter than a real response under load, or no startup probe on an application that takes a while to boot. Readiness is the safer place for a slow dependency, because failing it only takes the pod out of the Service.
The tell: restarts that are regular to the second
Applications fail at awkward intervals. Probes fail on a schedule. If the restart timestamps are evenly spaced, suspect the probe configuration before the process, especially when the logs show the application doing ordinary work right up to the moment it stops.
kubectl describe pod <pod> -n <namespace> | grep -E 'Liveness|Readiness|Startup|Unhealthy'Liveness and readiness do very different things
- A failed liveness probe restarts the container. It is for a process that is wedged and cannot recover on its own.
- A failed readiness probe only removes the pod from Service endpoints. Traffic stops arriving, the pod keeps running, and it returns when it passes again.
Most of the damage comes from using liveness where readiness was meant.
Three configurations that cause outages
No startup probe on a slow starter
The application needs ninety seconds to warm up. The liveness probe starts checking after ten and restarts it at thirty, so it never finishes starting. A startup probe holds liveness off until the first success, which is exactly what it is for.
A timeout shorter than a real response
A probe timeout of one second against an endpoint that takes 1.2 seconds under load means the pod is healthy when the cluster is quiet and restarts when it is busy. That is the worst failure mode available, because it arrives with the traffic.
A liveness probe that checks a dependency
If the probe hits an endpoint that queries the database, then when the database has a bad minute Kubernetes restarts every one of your pods. One outage becomes two, and the restarts make the first one worse.
Connection refused during startup is not a bug
Nothing is listening yet. It only matters if it continues past the point the application should be up, which is the line a startup probe draws for you.
What KubeGraf does with this one
KubeGraf lines the Unhealthy events up against the container's own startup timing and the probe's configured thresholds, so a probe that is too strict reads differently from an application that is genuinely stuck.
The reference
The full reference: Liveness and readiness probe failed.
Sources
Read on 25 November 2026. Check the source before you rely on a detail.
Frequently asked questions
What is the difference between a liveness and a readiness probe?
A failed liveness probe restarts the container. A failed readiness probe only removes the pod from Service endpoints and leaves it running.
Why does my probe fail with connection refused?
Nothing is listening on that port yet, or not on the address the probe uses. During startup that is normal, which is what a startup probe is for.
When should I add a startup probe?
When the application needs longer to become ready than you want to allow it to hang once it is running. The startup probe holds the liveness probe off until the first success.
Should a liveness probe check a database?
No. A probe that depends on something else restarts your pod when that other thing has the problem, which turns one outage into two.
Want this worked for you on your own clusters? Apply for KubeGraf Freemium. Three calendar months by approval, no card and no automatic paid conversion.
Last updated . Try KubeGraf Freemium.