Configuring Readiness and Liveness Probes in Kubernetes
Configuring Readiness and Liveness Probes in Kubernetes

Configuring Readiness and Liveness Probes in Kubernetes

Author
Shiv Bade
Tags
kubernetes
liveness probe
readiness probe
Published
February 16, 2017
Featured
Slug
Tweet
Probes are critical for resilient services in Kubernetes.
  • Readiness: Is the app ready to accept traffic?
  • Liveness: Should the container be restarted?
YAML snippet:
livenessProbe: httpGet: path: /healthz port: 8080 initialDelaySeconds: 30 periodSeconds: 10
Tune thresholds carefully — too strict and you’ll cause restarts.