Centralize values to configmap and secret

This commit is contained in:
erik 2023-08-22 13:51:54 +02:00
parent e6fbd6d5dc
commit 77fce1e87d
3 changed files with 16 additions and 3 deletions

View file

@ -27,6 +27,8 @@ spec:
mountPath: /var/lib/rabbitmq
readOnly: false
env:
- name: RABBITMQ_LOGS
value: /opt/rabbitmq/logs.log
- name: RABBITMQ_DEFAULT_USER
valueFrom:
secretKeyRef:
@ -43,7 +45,10 @@ spec:
name: taiga-rabbitmq-secret
key: RABBITMQ_ERLANG_COOKIE
- name: RABBITMQ_DEFAULT_VHOST
value: taiga
valueFrom:
configMapKeyRef:
name: taiga-configmap
key: RABBITMQ_DEFAULT_VHOST
volumes:
- name: taiga-async-rabbitmq-data

View file

@ -45,4 +45,6 @@ data:
ENABLE_JIRA_IMPORTER: "false"
ENABLE_TRELLO_IMPORTER: "false"
# Rabbitmq settings
RABBITMQ_DEFAULT_VHOST: taiga

View file

@ -28,9 +28,15 @@ spec:
readOnly: false
env:
- name: RABBITMQ_ERLANG_COOKIE
value: erlang-cookie-name
valueFrom:
secretKeyRef:
name: taiga-secret
key: RABBITMQ_ERLANG_COOKIE
- name: RABBITMQ_DEFAULT_VHOST
value: taiga
valueFrom:
configMapKeyRef:
name: taiga-configmap
key: RABBITMQ_DEFAULT_VHOST
- name: RABBITMQ_USER
valueFrom:
secretKeyRef: