Use configmaps and secrets

This commit is contained in:
erik 2023-08-09 11:56:16 +02:00
parent 25a6279fa2
commit f788634d6b

View file

@ -28,6 +28,11 @@ spec:
- name: taiga-media - name: taiga-media
mountPath: /taiga-back/media mountPath: /taiga-back/media
readOnly: false readOnly: false
envFrom:
- configMapRef:
name: taiga-back-configmap
- secretRef:
name: taiga-back-secret
env: env:
- name: POSTGRES_USER # ToDo: does taiga need a specific postgres version? - name: POSTGRES_USER # ToDo: does taiga need a specific postgres version?
valueFrom: # ToDo: which env vars are needed by taiga-back and taiga-async valueFrom: # ToDo: which env vars are needed by taiga-back and taiga-async
@ -61,6 +66,11 @@ spec:
- name: taiga-media - name: taiga-media
mountPath: /taiga-back/media mountPath: /taiga-back/media
readOnly: false readOnly: false
envFrom:
- configMapRef:
name: taiga-back-configmap
- secretRef:
name: taiga-back-secret
env: # ToDo: Does every container need access to all env vars? env: # ToDo: Does every container need access to all env vars?
- name: POSTGRES_USER # ToDo: does taiga need a specific postgres version? - name: POSTGRES_USER # ToDo: does taiga need a specific postgres version?
valueFrom: # ToDo: which env vars are needed by taiga-back and taiga-async valueFrom: # ToDo: which env vars are needed by taiga-back and taiga-async
@ -94,6 +104,11 @@ spec:
- name: taiga-media - name: taiga-media
mountPath: /taiga-back/media mountPath: /taiga-back/media
readOnly: false readOnly: false
envFrom:
- configMapRef:
name: taiga-back-configmap
- secretRef:
name: taiga-back-secret
env: env:
- name: POSTGRES_USER - name: POSTGRES_USER
valueFrom: valueFrom:
@ -123,13 +138,12 @@ spec:
- name: taiga-async-rabbitmq-data - name: taiga-async-rabbitmq-data
mountPath: /var/lib/rabbitmq mountPath: /var/lib/rabbitmq
readOnly: false readOnly: false
envFrom:
- secretRef:
name: taiga-rabbitmq-secret
env: env:
- name: RABBITMQ_ERLANG_COOKIE - name: RABBITMQ_ERLANG_COOKIE
value: ERLANG_COOKIE_VALUE value: ERLANG_COOKIE_VALUE
- name: RABBITMQ_DEFAULT_USER
value: RABBITMQ_USER
- name: RABBITMQ_DEFAULT_PASS
value: RABBITMQ_PASS
- name: RABBITMQ_DEFAULT_VHOST - name: RABBITMQ_DEFAULT_VHOST
value: RABBITMQ_VHOST value: RABBITMQ_VHOST
- name: taiga-front - name: taiga-front