From a122ceb09b8873eeaeec771d1ba1d56172f5734e Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Sun, 16 Apr 2023 11:57:27 +0300 Subject: [PATCH] Set priority class to critical Flux components Mark source-controller, kustomize-controller and helm-controller as system-cluster-critical. This will reduce the chances of Flux controllers being evicted before other non-critical workloads. Signed-off-by: Stefan Prodan --- manifests/bases/helm-controller/patch.yaml | 3 +++ manifests/bases/kustomize-controller/patch.yaml | 3 +++ manifests/bases/source-controller/patch.yaml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/manifests/bases/helm-controller/patch.yaml b/manifests/bases/helm-controller/patch.yaml index fe49320a..79773699 100644 --- a/manifests/bases/helm-controller/patch.yaml +++ b/manifests/bases/helm-controller/patch.yaml @@ -4,3 +4,6 @@ - op: add path: /spec/template/spec/serviceAccountName value: helm-controller +- op: add + path: /spec/template/spec/priorityClassName + value: system-cluster-critical diff --git a/manifests/bases/kustomize-controller/patch.yaml b/manifests/bases/kustomize-controller/patch.yaml index aa588b2b..6ce23139 100644 --- a/manifests/bases/kustomize-controller/patch.yaml +++ b/manifests/bases/kustomize-controller/patch.yaml @@ -4,3 +4,6 @@ - op: add path: /spec/template/spec/serviceAccountName value: kustomize-controller +- op: add + path: /spec/template/spec/priorityClassName + value: system-cluster-critical diff --git a/manifests/bases/source-controller/patch.yaml b/manifests/bases/source-controller/patch.yaml index 911d1865..e55604ee 100644 --- a/manifests/bases/source-controller/patch.yaml +++ b/manifests/bases/source-controller/patch.yaml @@ -4,3 +4,6 @@ - op: add path: /spec/template/spec/serviceAccountName value: source-controller +- op: add + path: /spec/template/spec/priorityClassName + value: system-cluster-critical