From 4629b83acefde6ba697300a93fc1a0f9798d4b79 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Thu, 11 Apr 2024 15:34:50 +0300 Subject: [PATCH] Set `GOMAXPROCS` and `GOMEMLIMIT` Signed-off-by: Stefan Prodan --- manifests/install/kustomization.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/manifests/install/kustomization.yaml b/manifests/install/kustomization.yaml index e7267c5..dc923ab 100644 --- a/manifests/install/kustomization.yaml +++ b/manifests/install/kustomization.yaml @@ -98,3 +98,22 @@ patches: target: kind: Deployment name: kustomize-controller + - patch: | + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: GOMAXPROCS + valueFrom: + resourceFieldRef: + containerName: manager + resource: limits.cpu + - op: add + path: /spec/template/spec/containers/0/env/- + value: + name: GOMEMLIMIT + valueFrom: + resourceFieldRef: + containerName: manager + resource: limits.memory + target: + kind: Deployment