For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/code_security/iac_security/iac_rules/kubernetes-cpu-requests-not-set.md.
A documentation index is available at /llms.txt.
CPU requests should be set to ensure the total resource requests of scheduled containers are less than the node’s capacity. This rule checks both initContainers and containers for the presence of a resources field, a resources.requests map, and a cpu entry within requests. It reports a MissingAttribute issue when any container is missing resources, missing requests, or missing CPU requests to help enforce proper schedulability and capacity planning.