Bird
0
0

You deployed a pod with resource limits but it keeps getting killed. What is the likely cause?

medium📝 Troubleshoot Q14 of 15
Kubernetes - Production Best Practices
You deployed a pod with resource limits but it keeps getting killed. What is the likely cause?
AThe pod has no liveness probe defined.
BThe pod exceeded its memory limit and was terminated by Kubernetes.
CThe pod is missing a readiness probe.
DThe pod's image is too large.
Step-by-Step Solution
Solution:
  1. Step 1: Understand resource limits effect

    Kubernetes kills pods that exceed their memory limits to protect node stability.
  2. Step 2: Link pod termination to resource limits

    If pod is killed repeatedly, likely it uses more memory than allowed.
  3. Final Answer:

    The pod exceeded its memory limit and was terminated by Kubernetes. -> Option B
  4. Quick Check:

    Memory limit exceeded = pod killed [OK]
Quick Trick: Check pod memory usage against limits if it keeps restarting [OK]
Common Mistakes:
  • Assuming missing probes cause pod kills
  • Blaming image size for pod termination
  • Confusing readiness and liveness probes with resource limits

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes