Skip to content

Commit

Permalink
use headless for all service names
Browse files Browse the repository at this point in the history
  • Loading branch information
Schnitzel committed Mar 17, 2019
1 parent 64bdcc1 commit afe4232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions images/rabbitmq-cluster/cluster-rabbit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit afe4232

Please sign in to comment.