mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/rabbitmq-ha] add option to force creation of erlang cookie (#15418)
* [stable/rabbitmq-ha] add option to force creation of erlang cookie Signed-off-by: Luke Alexander <luke.alexander@mixcloud.com> * fix README Signed-off-by: Luke Alexander <luke.alexander@mixcloud.com> * fix README Signed-off-by: Luke Alexander <luke.alexander@mixcloud.com> * bump Chart version Signed-off-by: Luke Alexander <luke.alexander@mixcloud.com> * use the RABBITMQ_ERLANG_COOKIE env var to force cookie Signed-off-by: Luke Alexander <luke.alexander@mixcloud.com> * remove any mention of setting rabbitmqErlangCookie Signed-off-by: Luke Alexander <luke.alexander@mixcloud.com> * Remove forceCookie in favour of explicitly setting the cookie via echo command Signed-off-by: Luke Alexander <luke.alexander@mixcloud.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
ae8ef2c026
commit
03cdc92a7a
@@ -1,7 +1,7 @@
|
||||
name: rabbitmq-ha
|
||||
apiVersion: v1
|
||||
appVersion: 3.7.15
|
||||
version: 1.32.1
|
||||
version: 1.32.2
|
||||
description: Highly available RabbitMQ cluster, the open source message broker
|
||||
software that implements the Advanced Message Queuing Protocol (AMQP).
|
||||
keywords:
|
||||
|
||||
@@ -53,7 +53,7 @@ spec:
|
||||
- |
|
||||
set -ex
|
||||
cp /configmap/* /etc/rabbitmq
|
||||
rm -f /var/lib/rabbitmq/.erlang.cookie
|
||||
echo "${RABBITMQ_ERLANG_COOKIE}" > /var/lib/rabbitmq/.erlang.cookie
|
||||
{{- if .Values.forceBoot }}
|
||||
if [ -d "${RABBITMQ_MNESIA_DIR}" ]; then
|
||||
touch "${RABBITMQ_MNESIA_DIR}/force_load"
|
||||
@@ -67,6 +67,11 @@ spec:
|
||||
fieldPath: metadata.name
|
||||
- name: RABBITMQ_MNESIA_DIR
|
||||
value: /var/lib/rabbitmq/mnesia/rabbit@$(POD_NAME).{{ template "rabbitmq-ha.fullname" . }}-discovery.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
|
||||
- name: RABBITMQ_ERLANG_COOKIE
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ template "rabbitmq-ha.secretName" . }}
|
||||
key: rabbitmq-erlang-cookie
|
||||
resources:
|
||||
{{ toYaml .Values.initContainer.resources | indent 12 }}
|
||||
volumeMounts:
|
||||
@@ -164,7 +169,7 @@ spec:
|
||||
{{- range $key, $value := .Values.env }}
|
||||
- name: {{ $key }}
|
||||
value: {{ $value | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
resources:
|
||||
{{ toYaml .Values.resources | indent 12 }}
|
||||
volumeMounts:
|
||||
|
||||
Reference in New Issue
Block a user