Challenge - 5 Problems
OOMKilled Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
Identify the cause of OOMKilled status
You run
kubectl get pods and see a pod with status OOMKilled. What does this status mean?Attempts:
2 left
💡 Hint
Think about what OOM stands for in computing.
✗ Incorrect
OOMKilled means the pod was killed by the system because it used more memory than allowed by its limit.
❓ Troubleshoot
intermediate1:30remaining
Diagnose memory limits causing OOMKilled
You have a pod that keeps restarting with OOMKilled status. Which command helps you check the memory limits set on the pod?
Attempts:
2 left
💡 Hint
Look for resource limits in pod details.
✗ Incorrect
kubectl describe pod shows detailed pod info including memory limits and usage events.
❓ Configuration
advanced2:00remaining
Correct memory limit configuration to avoid OOMKilled
Which YAML snippet correctly sets a memory limit of 512Mi to prevent OOMKilled errors?
Kubernetes
apiVersion: v1
kind: Pod
metadata:
name: example-pod
spec:
containers:
- name: example-container
image: nginx
resources:Attempts:
2 left
💡 Hint
Memory limits must include units and be under 'limits'.
✗ Incorrect
Memory limits must be set under limits with units like Mi to be valid.
✅ Best Practice
advanced2:00remaining
Best practice to prevent OOMKilled in production pods
What is the best practice to avoid OOMKilled errors in production Kubernetes pods?
Attempts:
2 left
💡 Hint
Think about balancing resource allocation and stability.
✗ Incorrect
Setting both requests and limits based on actual usage helps the scheduler and prevents OOMKilled.
🔀 Workflow
expert2:30remaining
Sequence to troubleshoot OOMKilled pod
Arrange the steps in the correct order to troubleshoot an OOMKilled pod:
Attempts:
2 left
💡 Hint
Start with pod status, then check config, then logs, then fix.
✗ Incorrect
First check pod events to confirm OOMKilled, then inspect resource limits, then logs for clues, finally adjust limits.