Use secretKeyRef where appropriate
This commit is contained in:
parent
0c19dd9623
commit
df1fb2e79c
4 changed files with 42 additions and 13 deletions
|
@ -25,10 +25,17 @@ spec:
|
|||
- name: taiga-async-rabbitmq-data
|
||||
mountPath: /var/lib/rabbitmq
|
||||
readOnly: false
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: taiga-rabbitmq-secret
|
||||
env:
|
||||
- name: RABBITMQ_DEFAULT_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: taiga-rabbitmq-secret
|
||||
key: RABBITMQ_DEFAULT_USER
|
||||
- name: RABBITMQ_DEFAULT_PASS
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: taiga-rabbitmq-secret
|
||||
key: RABBITMQ_DEFAULT_PASS
|
||||
- name: RABBITMQ_ERLANG_COOKIE
|
||||
value: ERLANG_COOKIE_VALUE
|
||||
- name: RABBITMQ_DEFAULT_VHOST
|
||||
|
|
|
@ -24,7 +24,20 @@ spec:
|
|||
envFrom: # ToDo: check if all vars are needed
|
||||
- configMapRef:
|
||||
name: taiga-configmap
|
||||
- secretRef:
|
||||
name: taiga-secret
|
||||
- secretRef:
|
||||
name: taiga-rabbitmq-secret
|
||||
env:
|
||||
- name: RABBITMQ_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: taiga-secret
|
||||
key: RABBITMQ_USER
|
||||
- name: RABBITMQ_PASS
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: taiga-secret
|
||||
key: RABBITMQ_PASS
|
||||
- name: SECRET_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: taiga-secret
|
||||
key: TAIGA_SECRET_KEY
|
||||
|
||||
|
|
|
@ -25,14 +25,21 @@ spec:
|
|||
- name: taiga-events-rabbitmq-data
|
||||
mountPath: /var/lib/rabbitmq
|
||||
readOnly: false
|
||||
envFrom:
|
||||
- secretRef: # ToDo secret key ref
|
||||
name: taiga-rabbitmq-secret
|
||||
env:
|
||||
- name: RABBITMQ_ERLANG_COOKIE
|
||||
value: ERLANG_COOKIE_VALUE
|
||||
- name: RABBITMQ_DEFAULT_VHOST
|
||||
value: RABBITMQ_VHOST
|
||||
- name: RABBITMQ_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: taiga-secret
|
||||
key: RABBITMQ_USER
|
||||
- name: RABBITMQ_PASS
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: taiga-secret
|
||||
key: RABBITMQ_PASS
|
||||
|
||||
volumes:
|
||||
- name: taiga-events-rabbitmq-data
|
||||
|
|
|
@ -21,9 +21,11 @@ spec:
|
|||
ports:
|
||||
- name: http
|
||||
containerPort: 8003
|
||||
envFrom: # ToDo secret key ref - secret_key
|
||||
- secretRef:
|
||||
name: taiga-secret
|
||||
env:
|
||||
- name: MAX_AGE
|
||||
value: ATTACHMENTS_MAX_AGE
|
||||
- name: SECRET_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: taiga-secret
|
||||
key: TAIGA_SECRET_KEY
|
||||
|
|
Loading…
Reference in a new issue