Kubernetes Probes Explained: Liveness, Readiness and Startup
Configure Kubernetes health probes correctly: what liveness, readiness and startup probes do, HTTP/TCP/exec/gRPC checks, timing settings and common outages.
Published December 2, 2026
Probes are how Kubernetes knows whether your container is alive, ready for traffic, or still starting up. Configured well, they give you self-healing and zero-downtime deploys. Configured badly, they cause the very outages they are meant to prevent: restart loops during traffic spikes, or traffic sent to pods that cannot serve it.
The concept
A readiness probe answers "should this pod receive traffic right now?" When it fails, the pod is removed from Service endpoints but not restarted. A liveness probe answers "is this process stuck beyond recovery?" When it fails repeatedly, the kubelet restarts the container. A startup probe protects slow-starting apps: until it succeeds, liveness and readiness checks are disabled.
Probes can be HTTP GET requests, TCP connection attempts, gRPC health checks or commands run inside the container. Timing is controlled by initialDelaySeconds, periodSeconds, timeoutSeconds, failureThreshold and successThreshold. The most important design rule: liveness checks must not depend on external services like the database, or a database blip will restart every pod at once.
The three probes
| Probe | Question | On failure | Typical check |
|---|---|---|---|
| Startup | Has the app finished starting? | Keep waiting; restart after threshold | GET /health/started |
| Readiness | Can it serve traffic now? | Removed from Service endpoints | GET /health/ready (checks deps) |
| Liveness | Is the process stuck? | Container restarted | GET /health/live (process only) |
How probes interact
Why liveness must stay local
Practical examples
Sensible probe configuration
Startup protects slow boots; liveness is lenient; readiness is responsive.
containers:
- name: api
image: example/api:2.3.0
ports: [{ containerPort: 8080 }]
startupProbe:
httpGet: { path: /health/started, port: 8080 }
periodSeconds: 5
failureThreshold: 30 # up to 150 s to start
readinessProbe:
httpGet: { path: /health/ready, port: 8080 }
periodSeconds: 5
failureThreshold: 2
livenessProbe:
httpGet: { path: /health/live, port: 8080 }
periodSeconds: 10
timeoutSeconds: 2
failureThreshold: 6 # ~1 minute of failure before restartSeparate health endpoints (Express)
Liveness checks only the process; readiness checks dependencies.
let started = false
app.get('/health/started', (req, res) => res.sendStatus(started ? 200 : 503))
app.get('/health/live', (req, res) => res.sendStatus(200))
app.get('/health/ready', async (req, res) => {
try { await db.query('SELECT 1'); res.sendStatus(200) } catch { res.sendStatus(503) }
})Find probe failures
Events show which probe failed and why.
kubectl describe pod api-7d9c8 | grep -A3 -i probe
kubectl get events --field-selector reason=Unhealthy -ACommon mistakes
- Liveness probes that check databases or downstream APIs.
- Identical liveness and readiness endpoints.
- Tight liveness timeouts that kill pods during GC pauses or load spikes.
- No startup probe for slow-starting JVM or ML services, causing restart loops.
Key takeaways
- Readiness controls traffic; liveness controls restarts; startup protects boot.
- Keep liveness checks local to the process.
- Readiness may check dependencies the pod needs to serve.
- Tune thresholds to tolerate normal pauses.
FAQ
Do I always need a liveness probe?
No. If your process crashes reliably when broken, the default restart behaviour may be enough; add liveness only for hang scenarios.
What does a failing readiness probe do during a rollout?
The new pod never becomes available, so the rollout pauses instead of replacing healthy pods.
Can probes overload my app?
Very frequent, expensive probes can; keep health endpoints cheap and periods reasonable.