Changing default ports #1843
Replies: 3 comments 1 reply
-
You'd also need to reconfigure RabbitMQ as well, to actually listen on different ports. I don't think we ever tested changing the default ports though. Why would you want to do that? |
Beta Was this translation helpful? Give feedback.
-
I use two rabbitMQs at the same k3s cluster, this k3s cluster uses cloud VMs, and this cloud doesn't support metallb function. So my rabbitMQs works as LB and uses the same IPs))
As you see the cpaas-rmq has external IPs (group of IPs) but the va-rmq doesn't have....This happens because the second rabbitMQ is trying to occupy a port that is already in use. I thought I could separate them by ports. You wrote that I can reconfigure RabbiMQ. Сould you explain more deeper? |
Beta Was this translation helpful? Give feedback.
-
Thank you for your help! I found a better solution for myself. At default service I set service as ClusterIP and the default service stopped binding to the common address. After it I created new service which used another ports:
|
Beta Was this translation helpful? Give feedback.
-
Is is possible to change default ports to another value? For example management set to 15673? I tried this https://www.rabbitmq.com/kubernetes/operator/using-operator#override it allows me create additional ports, but if I set something like this
I got mistake :
invalid: spec.ports[2].name: Duplicate value: \"management\""
{"level":"error","ts":"2025-03-23T10:58:54Z","msg":"Reconciler error","controller":"rabbitmqcluster","controllerGroup":"rabbitmq.com","controllerKind":"RabbitmqCluster","RabbitmqCluster":{"name":"va-rmq","namespace":"va"},"namespace":"va","name":"va-rmq","reconcileID":"6262cb65-d45d-417b-8f30-46c823567a06","error":"Service \"va-rmq\" is invalid: spec.ports[2].name: Duplicate value: \"management\"","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/bitnami/blacksmith-sandox/rabbitmq-cluster-operator-2.8.0/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:329\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/bitnami/blacksmith-sandox/rabbitmq-cluster-operator-2.8.0/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/bitnami/blacksmith-sandox/rabbitmq-cluster-operator-2.8.0/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:227"}
Beta Was this translation helpful? Give feedback.
All reactions