From afd8366e3a31e893b47a4396cc2b26175cbc222c Mon Sep 17 00:00:00 2001 From: Qixiang Wan Date: Mon, 11 Aug 2025 16:51:43 +0800 Subject: [PATCH] mintmaker: set GOMEMLIMIT to avoid controller OOMKilled crashes Set GOMEMLIMIT=7GiB so the Go runtime respects Kubernetes memory limits. Although the controller is allocated 8GiB memory, in large clusters (e.g., p02 with 5000+ components) it can still be OOMKilled, possibly due to the Go runtime ignoring container limits. --- components/mintmaker/production/base/manager_patch.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/mintmaker/production/base/manager_patch.yaml b/components/mintmaker/production/base/manager_patch.yaml index a2feef103b7..358d9adfbfb 100644 --- a/components/mintmaker/production/base/manager_patch.yaml +++ b/components/mintmaker/production/base/manager_patch.yaml @@ -15,3 +15,6 @@ spec: requests: cpu: 100m memory: 8Gi + env: + - name: GOMEMLIMIT + value: "7GiB"