KA-B003: Missing memory requests
Warning Best Practice
Why This Matters
The container does not define a memory request. Without memory requests, the Kubernetes scheduler cannot make informed placement decisions and the container falls into the BestEffort QoS class. It will be the first to be OOM-killed under node memory pressure.
How to Fix
Add a memory request to the container resources
Before (incorrect)
containers:
- name: app
image: myapp:1.0 After (correct)
containers:
- name: app
image: myapp:1.0
resources:
requests:
memory: 128Mi Rule Details
- Rule Code
- KA-B003
- Severity
- Warning
- Category
- Best Practice