Merge "[rabbitmq] Use short rabbitmq node name"
This commit is contained in:
commit
d97b7884da
@ -15,6 +15,6 @@ apiVersion: v1
|
||||
appVersion: v3.12.0
|
||||
description: OpenStack-Helm RabbitMQ
|
||||
name: rabbitmq
|
||||
version: 0.1.40
|
||||
version: 0.1.41
|
||||
home: https://github.com/rabbitmq/rabbitmq-server
|
||||
...
|
||||
|
@ -82,7 +82,7 @@ if ! [ "${POD_INCREMENT}" -eq "0" ] && ! [ -d "/var/lib/rabbitmq/mnesia" ] ; the
|
||||
# Wait for server to join cluster, reset if it does not
|
||||
POD_INCREMENT=$(echo "${MY_POD_NAME}" | awk -F '-' '{print $NF}')
|
||||
END=$(($(date +%s) + 180))
|
||||
while ! rabbitmqctl -l --node $(get_node_name 0) -q cluster_status | grep -q "$(get_node_name ${POD_INCREMENT})"; do
|
||||
while ! rabbitmqctl --node $(get_node_name 0) -q cluster_status | grep -q "$(get_node_name ${POD_INCREMENT})"; do
|
||||
sleep 5
|
||||
NOW=$(date +%s)
|
||||
[ $NOW -gt $END ] && reset_rabbit
|
||||
|
@ -79,7 +79,7 @@ spec:
|
||||
- name: RABBIT_TIMEOUT
|
||||
value: "{{ .Values.conf.rabbitmq_exporter.rabbit_timeout }}"
|
||||
- name: RABBIT_URL
|
||||
value: {{ printf "%s" $protocol }}://{{ tuple "oslo_messaging" "internal" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}:{{ tuple "oslo_messaging" "internal" $protocol . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||
value: {{ printf "%s" $protocol }}://{{ tuple "oslo_messaging" "internal" . | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }}:{{ tuple "oslo_messaging" "internal" $protocol . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||
- name: RABBIT_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
|
@ -245,13 +245,13 @@ spec:
|
||||
fieldRef:
|
||||
fieldPath: status.podIP
|
||||
- name: RABBITMQ_USE_LONGNAME
|
||||
value: "true"
|
||||
value: "false"
|
||||
- name: RABBITMQ_NODENAME
|
||||
value: "rabbit@$(MY_POD_NAME).{{ tuple "oslo_messaging" "internal" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}"
|
||||
value: "rabbit@$(MY_POD_NAME)"
|
||||
- name: K8S_SERVICE_NAME
|
||||
value: {{ tuple "oslo_messaging" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
||||
- name: K8S_HOSTNAME_SUFFIX
|
||||
value: ".{{ tuple "oslo_messaging" "internal" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" }}"
|
||||
value: ".{{ tuple "oslo_messaging" "internal" . | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }}"
|
||||
- name: RABBITMQ_ERLANG_COOKIE
|
||||
value: "{{ $envAll.Values.endpoints.oslo_messaging.auth.erlang_cookie }}"
|
||||
- name: PORT_HTTP
|
||||
|
@ -40,4 +40,5 @@ rabbitmq:
|
||||
- 0.1.38 Do not use hardcoded username in rabbitmq chown container
|
||||
- 0.1.39 Allow to bootstrap rabbitmq with initial config
|
||||
- 0.1.40 Set password for guest user rabbitmq
|
||||
- 0.1.41 Use short rabbitmq node name
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user