Skip to content
Permalink
Browse files

Merge pull request #984 from amazeeio/broker-headless

rabbitmq: use headless for all service names
  • Loading branch information...
Schnitzel committed Mar 22, 2019
2 parents bc94673 + 4537521 commit e599ced37709612428e920a20bd6f05b04d973a2
@@ -61,7 +61,7 @@ objects:
metadata:
name: ${SERVICE_NAME}
spec:
serviceName: ${SERVICE_NAME}
serviceName: ${SERVICE_NAME}-headless
replicas: 3
selector:
matchLabels:
@@ -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

0 comments on commit e599ced

Please sign in to comment.
You can’t perform that action at this time.