Why it matters
A container with no memory request can starve its neighbours on the node, and the scheduler cannot place it honestly.
How to fix it
Set `resources.requests.memory`, or give the namespace a LimitRange with a defaultRequest.
What TrustIvan reads
Read through the Kubernetes API with the read-only role TrustIvan's install creates.
Benchmark controls
- NSA/CISA Kubernetes Hardening Guidance 1.2, control
network.resource-policies: Resource policies bound consumption. Also checked for this control: Container has no CPU limit, Container has no CPU request, Container has no memory limit, Namespace has no LimitRange, Namespace has no ResourceQuota
Control numbers are the published ones; the titles are TrustIvan's own short descriptions. The benchmarks belong to their publishers, who do not endorse TrustIvan.
Related checks
- Container has no memory limit
KubernetesSeverity: Low
k8s.container.no-memory-limit - Nothing requires the container to run as non-root
KubernetesSeverity: Low
k8s.container.non-root-not-enforced - Container has no CPU request
KubernetesSeverity: Low
k8s.container.no-cpu-request - Container may escalate privileges
KubernetesSeverity: Medium
k8s.container.privilege-escalation - Container has no CPU limit
KubernetesSeverity: Low
k8s.container.no-cpu-limit - Container runs privileged
KubernetesSeverity: Critical
k8s.container.privileged
Terms: KSPM (Kubernetes security posture management), Kubernetes RBAC, NSA/CISA Kubernetes Hardening Guidance, CIS Benchmarks
All Kubernetes posture checks · The whole catalogue · How this works in TrustIvan · Documentation