IntermediateLesson 12 of 35
Liveness, readiness and startup probes
Tell Kubernetes when your app is alive, ready for traffic, and finished starting.
- Readiness: failing removes the pod from Service endpoints (no traffic) but does not restart it.
- Liveness: failing makes the kubelet restart the container.
- Startup: delays the other probes for slow-starting apps.
yaml
readinessProbe:
httpGet: { path: /ready, port: 8080 }
periodSeconds: 5
livenessProbe:
httpGet: { path: /healthz, port: 8080 }
initialDelaySeconds: 10
failureThreshold: 3