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

View file

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

View file

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