Ensure memory request is set

Proprietary

A container is guaranteed to have as much memory as it requests, but is not allowed to use more memory than the limit set. This configuration may save resources and prevent an attack on an exploited container.

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

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.memory