More Info:
Verifies every container sets resources.requests so the scheduler can place the pod correctly and QoS is not BestEffort.Risk Level
LowAddress
SecurityCompliance Standards
- Cloudanix Best Practice
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
Identify non-compliant pods (run on any machine with kubectl access):
-
For a non-compliant pod owned by a higher-level controller (Deployment/StatefulSet/DaemonSet), edit the controller so all containers set CPU and memory requests (run on any machine with kubectl access). Example for a Deployment:
In each container under
spec.template.spec.containers[], add or update:Choose values appropriate for your workload. -
For a non-compliant pod created directly (no controller owner), edit the Pod spec (run on any machine with kubectl access). Note this will delete and recreate the Pod:
Under each
spec.containers[], add or update:Then recreate: -
For workloads managed via manifests or GitOps, update the source YAML so changes persist (run on your manifest/IaC repository, then apply from any machine with kubectl access):
Then apply:
-
Wait for updated workloads to roll out and pods to be recreated (run on any machine with kubectl access):
-
Verify compliance (run on any machine with kubectl access):
Ensure either the output is
is_compliant=trueor every listed container showsis_compliant=true.
Using kubectl
Using kubectl
On any machine with kubectl access:Focus on the ownerKind/ownerName (Deployment, StatefulSet, Job, etc.). Edit the controller, not the live pod.Edit Apply the updated manifest:This will roll pods for that Deployment as the template changes.DaemonSet:CronJob (template is nested):Edit:Apply:For standalone Pods created directly (ownerKind=Pod), either:
- Identify non‑compliant pods and their controllers
- Edit a controller to add requests (example: Deployment)
/tmp/deploy-with-requests.yaml and, for each container under spec.template.spec.containers, add a resources.requests block, for example:- Edit other owner types similarly (examples)
-
Edit in place (ephemeral; lost if pod is recreated by external system):
- Or better, manage them via a controller manifest going forward.
- Verification
Automation
Automation

