Kubernetes
Medium
Concepts
What is the difference between a liveness probe and a readiness probe?
Select your answer:
Show answer and explanation
Answer: Liveness probes check if a container is alive, while readiness probes check if a container is ready to serve traffic
Explanation
Liveness probes determine if a container is healthy; if the probe fails, the container is restarted. Readiness probes determine if a container is ready to receive traffic; if the probe fails, the pod's IP is removed from the endpoints of all Services that match it, effectively taking it out of service rotation without restarting it.
More medium Kubernetes questions
- What is the purpose of a ServiceAccount in Kubernetes?
- Which command would you use to create a secret from a file?
- What is the purpose of a Kubernetes InitContainer?
- Which component is responsible for scheduling pods onto nodes?
- What is the purpose of a Kubernetes ResourceQuota?
- What is the difference between a RollingUpdate and a Recreate deployment strategy?