File tree Expand file tree Collapse file tree
addons/rabbitmq/3.12/chart/rabbitmq/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -279,9 +279,9 @@ spec:
279279 exec :
280280 command :
281281 - init-stack
282- - /bin/bash
282+ - sh
283283 - -ec
284- - rabbitmq-diagnostics -q ping
284+ - test "$(curl -f --user {{ .Values.auth.username }}:$RABBITMQ_PASSWORD 127.0.0.1:{{ .Values.containerPorts.manager }}/api/health/checks/port-listener/{{ .Values.containerPorts.amqp }})" = '{"status":"ok","port":{{ .Values.containerPorts.amqp }}}'
285285 {{- end }}
286286 {{- if .Values.customReadinessProbe }}
287287 readinessProbe : {{- include "common.tplvalues.render" (dict "value" .Values.customReadinessProbe "context" $) | nindent 12 }}
@@ -290,9 +290,9 @@ spec:
290290 exec :
291291 command :
292292 - init-stack
293- - /bin/bash
293+ - sh
294294 - -ec
295- - rabbitmq-diagnostics -q check_running && rabbitmq-diagnostics -q check_local_alarms
295+ - test "$(curl -f --user {{ .Values.auth.username }}:$RABBITMQ_PASSWORD 127.0.0.1:{{ .Values.containerPorts.manager }}/api/health/checks/local-alarms)" = '{"status":"ok"}'
296296 {{- end }}
297297 {{- if .Values.customStartupProbe }}
298298 startupProbe : {{- include "common.tplvalues.render" (dict "value" .Values.customStartupProbe "context" $) | nindent 12 }}
You can’t perform that action at this time.
0 commit comments