k8wiz
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.

Read more about Kubernetes