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

ProbeQuestionOn failureTypical check
StartupHas the app finished starting?Keep waiting; restart after thresholdGET /health/started
ReadinessCan it serve traffic now?Removed from Service endpointsGET /health/ready (checks deps)
LivenessIs the process stuck?Container restartedGET /health/live (process only)

How probes interact

kubeletContainerService endpointsstartup probe… okreadiness okadd podreadiness fails (DB slow)remove pod (no restart)liveness still ok
Readiness removes traffic; liveness only restarts truly stuck processes.

Why liveness must stay local

Liveness checks DB (DB blip)all pods restartLiveness process-only (DB blip)no restarts; readiness drains
Illustrative impact of a 30-second database hiccup.

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 restart

Separate 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 -A

Common 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.

More DevOps articles