File tree Expand file tree Collapse file tree 1 file changed +22
-4
lines changed
addons/rabbitmq/templates Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change 5353 - /bin/sh
5454 - -c
5555 - |
56- cp /root/erlang.cookie /var/lib/rabbitmq/.erlang.cookie
57- chown rabbitmq:rabbitmq /var/lib/rabbitmq/.erlang.cookie
58- chmod 400 /var/lib/rabbitmq/.erlang.cookie
56+ if [ ! -f {{ .Values.dataMountPath }}/enabled_plugins ]; then
57+ cp /etc/rabbitmq/enabled_plugins {{ .Values.dataMountPath }}/enabled_plugins
58+ fi
59+ cp /root/erlang.cookie {{ .Values.dataMountPath }}/erlang.cookie
60+ chown rabbitmq:rabbitmq {{ .Values.dataMountPath }}/.erlang.cookie
61+ chmod 400 {{ .Values.dataMountPath }}/.erlang.cookie
5962 exec /opt/rabbitmq/sbin/rabbitmq-server
6063 env :
6164 - name : MY_POD_NAME
7780 - name : K8S_SERVICE_NAME
7881 value : $(KB_CLUSTER_COMP_NAME)-headless
7982 - name : RABBITMQ_ENABLED_PLUGINS_FILE
80- value : /etc/rabbitmq /enabled_plugins
83+ value : {{ .Values.dataMountPath }} /enabled_plugins
8184 - name : RABBITMQ_USE_LONGNAME
8285 value : " true"
8386 - name : RABBITMQ_NODENAME
@@ -130,6 +133,21 @@ spec:
130133 - mountPath : /etc/rabbitmq/enabled_plugins
131134 name : rabbitmq-config
132135 subPath : enabled_plugins
136+ - name : timezone
137+ mountPath : /etc/localtime
138+ readOnly : true
139+ - name : zoneinfo
140+ mountPath : /usr/share/zoneinfo
141+ readOnly : true
142+ volumes :
143+ - name : timezone
144+ hostPath :
145+ path : /etc/localtime
146+ type : File
147+ - name : zoneinfo
148+ hostPath :
149+ path : /usr/share/zoneinfo
150+ type : Directory
133151 vars :
134152 - name : RABBITMQ_DEFAULT_USER
135153 valueFrom :
You can’t perform that action at this time.
0 commit comments