From afe42326a470cb0129086cac1d270ce18761e454 Mon Sep 17 00:00:00 2001 From: Schnitzel Date: Sun, 17 Mar 2019 18:46:33 -0500 Subject: [PATCH] use headless for all service names --- images/rabbitmq-cluster/cluster-rabbit.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/rabbitmq-cluster/cluster-rabbit.sh b/images/rabbitmq-cluster/cluster-rabbit.sh index dbe0022ead..31c488ef1e 100644 --- a/images/rabbitmq-cluster/cluster-rabbit.sh +++ b/images/rabbitmq-cluster/cluster-rabbit.sh @@ -9,8 +9,8 @@ if [ -z "$POD_NAMESPACE" ]; then fi # clustering uses full hostnames, generate those -echo NODENAME=rabbit@${HOSTNAME}.${SERVICE_NAME}.${POD_NAMESPACE}.svc.cluster.local > /etc/rabbitmq/rabbitmq-env.conf -echo cluster_formation.k8s.hostname_suffix=.${SERVICE_NAME}.${POD_NAMESPACE}.svc.cluster.local >> /etc/rabbitmq/rabbitmq.conf +echo NODENAME=rabbit@${HOSTNAME}.${SERVICE_NAME}-headless.${POD_NAMESPACE}.svc.cluster.local > /etc/rabbitmq/rabbitmq-env.conf +echo cluster_formation.k8s.hostname_suffix=.${SERVICE_NAME}-headless.${POD_NAMESPACE}.svc.cluster.local >> /etc/rabbitmq/rabbitmq.conf echo cluster_formation.k8s.service_name=${SERVICE_NAME}-headless >> /etc/rabbitmq/rabbitmq.conf # start the server