InterviewBuddy
All interview questions

How do readiness and liveness probes serve different purposes?

Intermediate

Answer

Readiness controls whether a workload should receive service traffic. Liveness detects an unhealthy container that should be restarted after configured failures.

Explanation

A temporary dependency outage should not automatically cause every container to restart.

Example

Not ready removes service traffic; failed liveness triggers a restart.