mirror of
https://github.com/optim-enterprises-bv/homelab.git
synced 2025-11-02 02:48:02 +00:00
feat(env): Fetching common env from a ConfigMap
This commit is contained in:
9
apps/arr/cm-common-env.yaml
Normal file
9
apps/arr/cm-common-env.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: common-env
|
||||
namespace: arr
|
||||
data:
|
||||
PUID: "1000"
|
||||
PGID: "1000"
|
||||
TZ: "Europe/Oslo"
|
||||
@@ -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
|
||||
|
||||
@@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- cm-common-env.yaml
|
||||
- ingress.yaml
|
||||
- traefik-forward-auth
|
||||
- torrent
|
||||
|
||||
Reference in New Issue
Block a user