Bird
0
0

Given a pod with a liveness probe that fails continuously, what will Kubernetes do?

medium📝 Command Output Q4 of 15
Kubernetes - Production Best Practices
Given a pod with a liveness probe that fails continuously, what will Kubernetes do?
AStop the pod permanently without restart
BRestart the container repeatedly until it passes the probe
CIgnore the failure and keep the container running
DScale the pod to zero replicas
Step-by-Step Solution
Solution:
  1. Step 1: Understand liveness probe failure effect

    If a liveness probe fails, Kubernetes considers the container unhealthy.
  2. Step 2: Kubernetes response to failure

    Kubernetes restarts the container to try to recover it.
  3. Final Answer:

    Restart the container repeatedly until it passes the probe -> Option B
  4. Quick Check:

    Liveness failure = container restart [OK]
Quick Trick: Liveness failure triggers container restart [OK]
Common Mistakes:
  • Thinking Kubernetes stops the pod permanently
  • Assuming Kubernetes ignores liveness failures
  • Confusing liveness with readiness probe effects

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes