Why it matters
A container with no cpu request can starve its neighbours on the node, and the scheduler cannot place it honestly.
How to fix it
Set `resources.requests.cpu`, 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 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 has no CPU limit
KubernetesSeverity: Low
k8s.container.no-cpu-limit - Container has no memory limit
KubernetesSeverity: Low
k8s.container.no-memory-limit - Container keeps NET_RAW
KubernetesSeverity: Low
k8s.container.net-raw - Container has no memory request
KubernetesSeverity: Low
k8s.container.no-memory-request - Container runs a mutable image tag
KubernetesSeverity: Low
k8s.container.mutable-tag - Nothing requires the container to run as non-root
KubernetesSeverity: Low
k8s.container.non-root-not-enforced
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