- Identify resource requests and limits
- Diagnose pod failures caused by insufficient resources
- Update pod specifications to prevent OOM kills
Pod “rabbit”: Identifying CPU Requests
First, confirm that the rabbit pod is running and examine its resource settings:
Pod “elephant”: Diagnosing Memory Issues
When you deploy the elephant pod, it enters a CrashLoopBackOff:stress workload uses around 15Mi.
The CrashLoopBackOff status indicates the container repeatedly failed due to out-of-memory errors. Always ensure your
limits.memory exceed the actual usage of your application.
Updating the Memory Limit
You cannot patch resource limits on a running pod. Instead, edit the pod manifest and recreate it:resources section and change:

Resource Summary
Clean Up
Remove the elephant pod to finish the exercise:Further Reading
- Resource Management for Pods and Containers
- Kubernetes Official Documentation
- Understanding CrashLoopBackOff