Configuring Readiness and Liveness Probes in Kubernetes
Probes are critical for resilient services in Kubernetes.
- Readiness: Is the app ready to accept traffic?
- Liveness: Should the container be restarted?
YAML snippet:
1
2
3
4
5
6
7
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 30
periodSeconds: 10
Tune thresholds carefully — too strict and you’ll cause restarts.
This post is licensed under CC BY 4.0 by the author.