☑️ Ensure each container has a configured CPU limit

CPU limits enable you to use CPU resources efficiently by restricting the maximum amount of CPU available to the pods running in your cluster.

Targeted resources by this rule (types of kind): Deployment / Pod / DaemonSet / StatefulSet / ReplicaSet / CronJob / Job

Enabled by default? True

Policy as code identifier: CONTAINERS_MISSING_CPU_LIMIT_KEY

This rule will fail

If a container doesn't have a CPU limit configured

YAML

Rule output in the CLI

Terminal

How to fix this failure

YAML

Read more