chore(sonarr): Use ConfigMap for env vars

This commit is contained in:
Peter 2026-01-27 22:20:59 +01:00
parent 32109fd78f
commit 2eecdce543
Signed by: Peter
SSH key fingerprint: SHA256:B5tYaxBExaDm74r1px9iVeZ6F/ZDiyiy9SbBqfZYrvg
2 changed files with 12 additions and 7 deletions

View file

@ -0,0 +1,9 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: sonarr-envs
data:
PUID: "1000"
PGID: "1000"
TZ: Europe/Amsterdam

View file

@ -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