Bird
0
0

What happens when a Kubernetes liveness probe fails for a container?

easy📝 Conceptual Q11 of 15
Kubernetes - Health Checks and Probes
What happens when a Kubernetes liveness probe fails for a container?
ATraffic to the container is stopped but it is not restarted.
BThe container is restarted by Kubernetes.
CThe container continues running without changes.
DThe container is removed permanently.
Step-by-Step Solution
Solution:
  1. Step 1: Understand liveness probe purpose

    Liveness probes check if a container is alive and healthy.
  2. Step 2: Effect of liveness probe failure

    If the liveness probe fails, Kubernetes restarts the container to fix the issue.
  3. Final Answer:

    The container is restarted by Kubernetes. -> Option B
  4. Quick Check:

    Liveness probe failure = container restart [OK]
Quick Trick: Liveness probe failure always triggers container restart [OK]
Common Mistakes:
  • Confusing liveness with readiness probe effects
  • Thinking container is deleted permanently
  • Assuming no action on failure

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes