From b8725fc53af0a43871ff84927c459cbd7af79131 Mon Sep 17 00:00:00 2001 From: LarryGF Date: Sat, 9 Dec 2023 17:34:05 +0100 Subject: [PATCH] Setting priorityclassname to base services --- .../modules/base/submodules/adguard/helm/adguard-values.yaml | 1 + .../modules/base/submodules/argo-cd/helm/argo-cd-values.yaml | 1 + terraform/modules/base/submodules/cert-manager/main.tf | 4 ++++ .../base/submodules/longhorn/helm/longhorn-values.yaml | 1 + .../modules/base/submodules/traefik/helm/traefik-values.yaml | 1 + 5 files changed, 8 insertions(+) diff --git a/terraform/modules/base/submodules/adguard/helm/adguard-values.yaml b/terraform/modules/base/submodules/adguard/helm/adguard-values.yaml index 71e3b65d..829da0ba 100644 --- a/terraform/modules/base/submodules/adguard/helm/adguard-values.yaml +++ b/terraform/modules/base/submodules/adguard/helm/adguard-values.yaml @@ -1,4 +1,5 @@ # adguard-home.yaml +priorityClassName: system-node-critical image: tag: v0.108.0-b.51 diff --git a/terraform/modules/base/submodules/argo-cd/helm/argo-cd-values.yaml b/terraform/modules/base/submodules/argo-cd/helm/argo-cd-values.yaml index a5073d45..2aeae3bd 100644 --- a/terraform/modules/base/submodules/argo-cd/helm/argo-cd-values.yaml +++ b/terraform/modules/base/submodules/argo-cd/helm/argo-cd-values.yaml @@ -19,6 +19,7 @@ global: nodeSelector: priority: critical + priorityClassName: system-node-critical env: [] ## Argo Configs diff --git a/terraform/modules/base/submodules/cert-manager/main.tf b/terraform/modules/base/submodules/cert-manager/main.tf index 5604d42c..3b200676 100644 --- a/terraform/modules/base/submodules/cert-manager/main.tf +++ b/terraform/modules/base/submodules/cert-manager/main.tf @@ -24,6 +24,10 @@ resource "helm_release" "cert-manager" { name = "startupapicheck.nodeSelector.kubernetes\\.io/hostname" value = var.master_hostname } + set { + name = "global.priorityClassName" + value = "system-node-critical" + } } resource "kubectl_manifest" "letsencrypt-issuer" { diff --git a/terraform/modules/base/submodules/longhorn/helm/longhorn-values.yaml b/terraform/modules/base/submodules/longhorn/helm/longhorn-values.yaml index ba418e41..a922ec3e 100644 --- a/terraform/modules/base/submodules/longhorn/helm/longhorn-values.yaml +++ b/terraform/modules/base/submodules/longhorn/helm/longhorn-values.yaml @@ -32,6 +32,7 @@ defaultSettings: createDefaultDiskLabeledNodes: true defaultReplicaCount: 1 defaultDataPath: ${default_data_path} + priorityClass: system-node-critical longhornUI: nodeSelector: diff --git a/terraform/modules/base/submodules/traefik/helm/traefik-values.yaml b/terraform/modules/base/submodules/traefik/helm/traefik-values.yaml index 79d8d4fa..e001e907 100644 --- a/terraform/modules/base/submodules/traefik/helm/traefik-values.yaml +++ b/terraform/modules/base/submodules/traefik/helm/traefik-values.yaml @@ -6,6 +6,7 @@ image: tag: "" pullPolicy: IfNotPresent +priorityClassName: system-node-critical hub: enabled: false