From 2eecdce543f354e1a0d5612b9d54ffe8a683c7fc Mon Sep 17 00:00:00 2001 From: pgijsbertsen <117165507+pgijsbertsen@users.noreply.github.com> Date: Tue, 27 Jan 2026 22:20:59 +0100 Subject: [PATCH] chore(sonarr): Use ConfigMap for env vars --- k8s-wheatley/sonarr/configmap.yaml | 9 +++++++++ k8s-wheatley/sonarr/deployments.yaml | 10 +++------- 2 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 k8s-wheatley/sonarr/configmap.yaml diff --git a/k8s-wheatley/sonarr/configmap.yaml b/k8s-wheatley/sonarr/configmap.yaml new file mode 100644 index 0000000..a5b1bde --- /dev/null +++ b/k8s-wheatley/sonarr/configmap.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: sonarr-envs +data: + PUID: "1000" + PGID: "1000" + TZ: Europe/Amsterdam diff --git a/k8s-wheatley/sonarr/deployments.yaml b/k8s-wheatley/sonarr/deployments.yaml index 9186848..a905867 100644 --- a/k8s-wheatley/sonarr/deployments.yaml +++ b/k8s-wheatley/sonarr/deployments.yaml @@ -28,13 +28,9 @@ spec: imagePullPolicy: IfNotPresent ports: - containerPort: 8989 - env: - - name: PUID - value: "1000" - - name: PGID - value: "1000" - - name: TZ - value: Europe/Amsterdam + envFrom: + - configMapRef: + name: sonarr-envs volumeMounts: - mountPath: /config name: sonarr-config