Ensure memory limits are set

Proprietary

With no limit set, kubectl allocates more and more memory to the container until it runs out.

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

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