Why it matters
Without a LimitRange, a container that sets no limits runs unbounded, and nothing supplies a default.
How to fix it
Add a LimitRange with default limits and requests for containers.
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, Container has no memory request, 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
- Namespace has NetworkPolicies but no default deny
KubernetesSeverity: Low
k8s.namespace.no-default-deny - Namespace has no NetworkPolicy
KubernetesSeverity: Medium
k8s.namespace.no-network-policy - Namespace enforces no Pod Security Standard
KubernetesSeverity: Medium
k8s.namespace.no-pod-security-standard - Namespace has no ResourceQuota
KubernetesSeverity: Low
k8s.namespace.no-resource-quota - Namespace enforces only Pod Security baseline
KubernetesSeverity: Low
k8s.namespace.pod-security-not-restricted
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