What is the difference between readiness and liveness probes in Kubernetes?
- Readiness gates traffic until pod is ready; failing removes from endpoints
- Liveness restarts the container when it gets unhealthy
- Probes: HTTP/TCP/exec with initialDelay, period, thresholds
- 💡A startup probe can protect slow apps from restarts.
- ⚠️**Misusing probes:** Using a liveness probe to check for application readiness, leading to continuous restarts when the application is merely warming up.
- ⚠️**Overly aggressive probe settings:** Setting `initialDelaySeconds` too low, or `periodSeconds` and `failureThreshold` too short, causing premature restarts or traffic removal for temporary issues.
- ⚠️**Probes not reflecting true application health:** Checking only basic HTTP status codes (e.g., 200 OK) when the application might be running but functionally broken (e.g., unable to connect to a critical backend service).
- ⚠️**Long-running Exec probes:** An `exec` command that takes too long to complete might exceed `timeoutSeconds` and be mistakenly considered a probe failure.
- ⚠️**Not using both probes:** Relying solely on liveness or readiness, missing out on the complementary benefits for robust fault tolerance, such as isolating non-ready pods while gracefully restarting truly unhealthy ones.
- ❓When to use startup probes?
- ❓Common pitfalls causing restart loops?
Ready to prove your Kubernetes administration knowledge?
Practice with free Certified Kubernetes Administrator (CKA) (CKA) exam questions. Instant answers and detailed explanations — no account required.
Start free practice quizQuestions that share similar topics with this one
Kubernetes Pod Stuck in Pending
IntermediateKubernetes Pod Restart Loop Troubleshooting
IntermediateInvestigating High CPU Usage in Kubernetes Pods
AdvancedKubernetes Pod Stuck in Pending
IntermediateNode Disk Full
IntermediateDeepen your knowledge with these related blog posts
Kubernetes Production Readiness Checklist
A practical checklist to ensure your Kubernetes clusters are production-ready. Covering security, reliability, operational safeguards, observability, and common pitfalls every team should avoid.
Chaos Engineering for Realists: Safe Experiments You Can Run This Quarter
Chaos engineering isn't about breaking production blindly. Learn safe, structured experiments you can run today to improve reliability, validate recovery plans, and strengthen SLOs.
Cost-Aware SRE: FinOps Practices Without Sacrificing Reliability
Learn how Site Reliability Engineers can balance cloud costs with reliability goals using FinOps strategies, autoscaling optimizations, and observability-driven insights.