Ensure CPU request is set

Proprietary

If a container is created in a namespace that has a default CPU limit, and the container does not specify its own CPU limit, then the container is assigned the default CPU limit.

org.openrewrite.kubernetes.MissingCpuRequest
mod run . --recipe=org.openrewrite.kubernetes.MissingCpuRequest

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Find containers with missing configuration resources.requests.cpu