feat(env): Fetching common env from a ConfigMap

This commit is contained in:
Vegard Hagen
2023-04-10 14:26:02 +02:00
parent e84bea5da2
commit fd605aa01a
3 changed files with 22 additions and 3 deletions

View File

@@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: common-env
namespace: arr
data:
PUID: "1000"
PGID: "1000"
TZ: "Europe/Oslo"

View File

@@ -1,11 +1,20 @@
namespace: arr
env:
- name: PUID
value: "1000"
valueFrom:
configMapKeyRef:
name: common-env
key: PUID
- name: PGID
value: "1000"
valueFrom:
configMapKeyRef:
name: common-env
key: PGID
- name: TZ
value: Europe/Oslo
valueFrom:
configMapKeyRef:
name: common-env
key: TZ
additionalVolumes:
- name: data
mountPath: /app/data

View File

@@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- cm-common-env.yaml
- ingress.yaml
- traefik-forward-auth
- torrent