Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions addons/rabbitmq/templates/cmpd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,12 @@ spec:
- /bin/sh
- -c
- |
cp /root/erlang.cookie /var/lib/rabbitmq/.erlang.cookie
chown rabbitmq:rabbitmq /var/lib/rabbitmq/.erlang.cookie
chmod 400 /var/lib/rabbitmq/.erlang.cookie
if [ ! -f {{ .Values.dataMountPath }}/enabled_plugins ]; then
cp /etc/rabbitmq/enabled_plugins {{ .Values.dataMountPath }}/enabled_plugins
fi
cp /root/erlang.cookie {{ .Values.dataMountPath }}/erlang.cookie
chown rabbitmq:rabbitmq {{ .Values.dataMountPath }}/.erlang.cookie
chmod 400 {{ .Values.dataMountPath }}/.erlang.cookie
exec /opt/rabbitmq/sbin/rabbitmq-server
env:
- name: POD_NAME
Expand All @@ -106,7 +109,7 @@ spec:
- name: K8S_SERVICE_NAME
value: $(CLUSTER_COMPONENT_NAME)-headless
- name: RABBITMQ_ENABLED_PLUGINS_FILE
value: /etc/rabbitmq/enabled_plugins
value: {{ .Values.dataMountPath }}/enabled_plugins
- name: RABBITMQ_USE_LONGNAME
value: "true"
- name: RABBITMQ_NODENAME
Expand Down Expand Up @@ -158,6 +161,21 @@ spec:
- mountPath: /etc/rabbitmq/enabled_plugins
name: rabbitmq-config
subPath: enabled_plugins
- name: timezone
mountPath: /etc/localtime
readOnly: true
- name: zoneinfo
mountPath: /usr/share/zoneinfo
readOnly: true
volumes:
- name: timezone
hostPath:
path: /etc/localtime
type: File
- name: zoneinfo
hostPath:
path: /usr/share/zoneinfo
type: Directory
vars:
- name: KB_CLUSTER_NAME
valueFrom:
Expand Down
Loading