CPU & Memory Limits Should be Set
The Pod limits should be set so the scheduler can make better placing decisions, and to help avoid resource starvation.
You can see more information at https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
Risk Level: Low
Cloud Entity: Pods
CloudGuard Rule ID: D9.K8S.AC.01
Covered by Spectral: No
Category: Compute
GSL LOGIC
KubernetesPod should not have spec.containers contain-any [ resources.limits.memory isEmpty() or resources.limits.cpu isEmpty() ] or spec.initContainers contain-any [ resources.limits.memory isEmpty() or resources.limits.cpu isEmpty() ]
REMEDIATION
Pods
Pods are the smallest deployable units of computing that can be created and managed in Kubernetes.A Pod is a group of one or more containers (such as Docker containers), with shared storage/network, and a specification for how to run the containers.
Compliance Frameworks
- Container Admission Control
Updated about 1 year ago