Bird
0
0

A pod's container is OOMKilled despite having a memory limit set. What could be a reason?

medium📝 Debug Q7 of 15
Kubernetes - Troubleshooting
A pod's container is OOMKilled despite having a memory limit set. What could be a reason?
AThe container image is too large
BThe CPU limit is set too high
CThe pod has no node affinity rules
DThe memory limit is too low for the container's workload
Step-by-Step Solution
Solution:
  1. Step 1: Understand why OOMKilled happens with limits set

    If memory limit is set but container still OOMKilled, the limit is likely too low.
  2. Step 2: Eliminate unrelated causes

    CPU limits, node affinity, and image size do not directly cause OOMKilled.
  3. Final Answer:

    The memory limit is too low for the container's workload -> Option D
  4. Quick Check:

    Low memory limit causes OOMKilled despite limits [OK]
Quick Trick: OOMKilled with limits means limit is too low [OK]
Common Mistakes:
  • Blaming CPU limits
  • Thinking node affinity affects memory
  • Confusing image size with memory usage

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes