Home > Kubernetes > Deployment > Container has no CPU limit
low severity

Container has no CPU limit (SNYK-CC-K8S-5)

Issue

Container has no CPU limit

Impact

CPU limits can prevent containers from consuming valuable compute time for no benefit (e.g. inefficient code) that might lead to unnecessary costs. It is advisable to also configure CPU requests to ensure application stability.

Resolve

Kubernetes
Add `resources.limits.cpu` field with required CPU limit value
Terraform
Add `spec.container.resources.limits.cpu` field with required CPU limit value