chore(sonarr): Use ConfigMap for env vars
This commit is contained in:
parent
32109fd78f
commit
2eecdce543
2 changed files with 12 additions and 7 deletions
9
k8s-wheatley/sonarr/configmap.yaml
Normal file
9
k8s-wheatley/sonarr/configmap.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: sonarr-envs
|
||||||
|
data:
|
||||||
|
PUID: "1000"
|
||||||
|
PGID: "1000"
|
||||||
|
TZ: Europe/Amsterdam
|
||||||
|
|
@ -28,13 +28,9 @@ spec:
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8989
|
- containerPort: 8989
|
||||||
env:
|
envFrom:
|
||||||
- name: PUID
|
- configMapRef:
|
||||||
value: "1000"
|
name: sonarr-envs
|
||||||
- name: PGID
|
|
||||||
value: "1000"
|
|
||||||
- name: TZ
|
|
||||||
value: Europe/Amsterdam
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /config
|
- mountPath: /config
|
||||||
name: sonarr-config
|
name: sonarr-config
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue