Pick the fix
During a 30-second database failover, every API pod restarted, slowing recovery. Why?
Hint 1 of 1
Which probe failure restarts a container?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A The liveness probe checked the database; move that check to readiness
Correct. Liveness failures restart; readiness only removes traffic.
Kubernetes restarts a container when liveness fails, but only stops sending traffic when readiness fails. Liveness should only ask 'is this process stuck?'; a database outage shouldn't restart every pod.
Why not the others?
- B The readiness probe was too slow. Readiness failures don't restart pods.
- C Too few replicas. They'd all restart too.
- D The pods ran out of memory. Nothing points to memory.