Use configmaps and secrets
This commit is contained in:
parent
25a6279fa2
commit
f788634d6b
1 changed files with 19 additions and 5 deletions
|
@ -28,6 +28,11 @@ spec:
|
|||
- name: taiga-media
|
||||
mountPath: /taiga-back/media
|
||||
readOnly: false
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: taiga-back-configmap
|
||||
- secretRef:
|
||||
name: taiga-back-secret
|
||||
env:
|
||||
- name: POSTGRES_USER # ToDo: does taiga need a specific postgres version?
|
||||
valueFrom: # ToDo: which env vars are needed by taiga-back and taiga-async
|
||||
|
@ -61,6 +66,11 @@ spec:
|
|||
- name: taiga-media
|
||||
mountPath: /taiga-back/media
|
||||
readOnly: false
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: taiga-back-configmap
|
||||
- secretRef:
|
||||
name: taiga-back-secret
|
||||
env: # ToDo: Does every container need access to all env vars?
|
||||
- name: POSTGRES_USER # ToDo: does taiga need a specific postgres version?
|
||||
valueFrom: # ToDo: which env vars are needed by taiga-back and taiga-async
|
||||
|
@ -94,6 +104,11 @@ spec:
|
|||
- name: taiga-media
|
||||
mountPath: /taiga-back/media
|
||||
readOnly: false
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: taiga-back-configmap
|
||||
- secretRef:
|
||||
name: taiga-back-secret
|
||||
env:
|
||||
- name: POSTGRES_USER
|
||||
valueFrom:
|
||||
|
@ -123,13 +138,12 @@ spec:
|
|||
- name: taiga-async-rabbitmq-data
|
||||
mountPath: /var/lib/rabbitmq
|
||||
readOnly: false
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: taiga-rabbitmq-secret
|
||||
env:
|
||||
- name: RABBITMQ_ERLANG_COOKIE
|
||||
value: ERLANG_COOKIE_VALUE
|
||||
- name: RABBITMQ_DEFAULT_USER
|
||||
value: RABBITMQ_USER
|
||||
- name: RABBITMQ_DEFAULT_PASS
|
||||
value: RABBITMQ_PASS
|
||||
- name: RABBITMQ_DEFAULT_VHOST
|
||||
value: RABBITMQ_VHOST
|
||||
- name: taiga-front
|
||||
|
|
Loading…
Reference in a new issue