From 2492b0987d02531a8115fe16c5a86c3e41de0a9a Mon Sep 17 00:00:00 2001 From: Varac <varac@varac.net> Date: Thu, 17 Mar 2022 16:25:47 +0100 Subject: [PATCH] Remove CPU limits from flux components Closes: #1152 --- install/flux-patches/helm-controller.yaml | 2 +- install/flux-patches/kustomize-controller.yaml | 12 ++++++++++++ install/flux-patches/source-controller.yaml | 2 +- install/install-stackspin.sh | 5 +++++ 4 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 install/flux-patches/kustomize-controller.yaml diff --git a/install/flux-patches/helm-controller.yaml b/install/flux-patches/helm-controller.yaml index fed0d1e60..c41bb06d6 100644 --- a/install/flux-patches/helm-controller.yaml +++ b/install/flux-patches/helm-controller.yaml @@ -7,7 +7,7 @@ spec: - "--concurrent=3" resources: limits: - cpu: "1" + cpu: null memory: 2048Mi requests: cpu: 100m diff --git a/install/flux-patches/kustomize-controller.yaml b/install/flux-patches/kustomize-controller.yaml new file mode 100644 index 000000000..41a6a4086 --- /dev/null +++ b/install/flux-patches/kustomize-controller.yaml @@ -0,0 +1,12 @@ +spec: + template: + spec: + containers: + - name: manager + resources: + limits: + cpu: null + memory: 1024Mi + requests: + cpu: 100m + memory: 64Mi diff --git a/install/flux-patches/source-controller.yaml b/install/flux-patches/source-controller.yaml index 87d0f58c6..e46b8d04b 100644 --- a/install/flux-patches/source-controller.yaml +++ b/install/flux-patches/source-controller.yaml @@ -5,7 +5,7 @@ spec: - name: manager resources: limits: - cpu: "1" + cpu: null memory: 1536Mi requests: cpu: 100m diff --git a/install/install-stackspin.sh b/install/install-stackspin.sh index dacde3034..44387b225 100755 --- a/install/install-stackspin.sh +++ b/install/install-stackspin.sh @@ -27,6 +27,11 @@ kubectl patch deployment \ source-controller \ --patch-file "$(dirname "$0")/flux-patches/source-controller.yaml" +kubectl patch deployment \ + -n flux-system \ + kustomize-controller \ + --patch-file "$(dirname "$0")/flux-patches/kustomize-controller.yaml" + # get current git branch name branch=${CI_COMMIT_REF_NAME:-} [ -z "$branch" ] && branch=$(git rev-parse --abbrev-ref HEAD) -- GitLab