Skip to content

Commit 5fb392f

Browse files
author
Amber
committed
Fix RabbitMQ init account startup config
1 parent c9989e9 commit 5fb392f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

addons/rabbitmq/templates/cmpd.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ spec:
9191
cp /root/erlang.cookie {{ .Values.dataMountPath }}/.erlang.cookie
9292
chown rabbitmq:rabbitmq {{ .Values.dataMountPath }}/.erlang.cookie
9393
chmod 400 {{ .Values.dataMountPath }}/.erlang.cookie
94+
cat > /etc/rabbitmq/conf.d/10-kubeblocks-default-user.conf <<EOF
95+
default_user = ${RABBITMQ_DEFAULT_USER}
96+
default_pass = ${RABBITMQ_DEFAULT_PASS}
97+
EOF
9498
exec /opt/rabbitmq/sbin/rabbitmq-server
9599
env:
96100
- name: POD_NAME

0 commit comments

Comments
 (0)