From acfd18604ae73cc874771563fdbd5048c7dcd5d5 Mon Sep 17 00:00:00 2001 From: Arie Peterson <arie@greenhost.nl> Date: Thu, 21 Oct 2021 11:53:42 +0200 Subject: [PATCH] Increase memory limit of helm-controller --- install/flux-patches/helm-controller.yaml | 12 ++++++++++++ install/install-openappstack.sh | 7 +++++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 install/flux-patches/helm-controller.yaml diff --git a/install/flux-patches/helm-controller.yaml b/install/flux-patches/helm-controller.yaml new file mode 100644 index 000000000..87d0f58c6 --- /dev/null +++ b/install/flux-patches/helm-controller.yaml @@ -0,0 +1,12 @@ +spec: + template: + spec: + containers: + - name: manager + resources: + limits: + cpu: "1" + memory: 1536Mi + requests: + cpu: 100m + memory: 512Mi diff --git a/install/install-openappstack.sh b/install/install-openappstack.sh index 6a8475d2e..7d65d7ffc 100755 --- a/install/install-openappstack.sh +++ b/install/install-openappstack.sh @@ -2,7 +2,8 @@ set -euo pipefail -. $(dirname "$0")/flux-version-check.sh +# shellcheck source=install/flux-version-check.sh +. "$(dirname "$0")/flux-version-check.sh" flux install \ --network-policy=false \ @@ -10,6 +11,8 @@ flux install \ --namespace=flux-system \ --components="source-controller,kustomize-controller,helm-controller" +kubectl patch deployment -n flux-system helm-controller --patch-file flux-patches/helm-controller.yaml + # get current git branch name branch=${CI_COMMIT_REF_NAME:-} [ -z "$branch" ] && branch=$(git rev-parse --abbrev-ref HEAD) @@ -31,7 +34,7 @@ python "$(dirname "$0")/generate_secrets.py" alertmanager flux create source git openappstack \ --url=https://open.greenhost.net/openappstack/openappstack \ - --branch=$branch \ + --branch="$branch" \ --interval=1h flux create kustomization openappstack \ -- GitLab