Why it matters
A container with no cpu limit can starve its neighbours on the node, and the scheduler cannot place it honestly.
How to fix it
Set `resources.limits.cpu`, or give the namespace a LimitRange with a default.
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 request, Container has no memory limit, Container has no memory request, 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 keeps NET_RAW
KubernetesSeverity: Low
k8s.container.net-raw - Container has no CPU request
KubernetesSeverity: Low
k8s.container.no-cpu-request - Container runs a mutable image tag
KubernetesSeverity: Low
k8s.container.mutable-tag - Container has no memory limit
KubernetesSeverity: Low
k8s.container.no-memory-limit - Container runs `latest` or an untagged image
KubernetesSeverity: Medium
k8s.container.image-latest - Container has no memory request
KubernetesSeverity: Low
k8s.container.no-memory-request
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