Restrict ports of service type Load Balancer

39 views
Skip to first unread message

Shankar S

unread,
Mar 22, 2024, 1:52:37 PM3/22/24
to rabbitmq-users
Hi,

We are using rabbitmq operator version 2.5.0 and rabbitmq version 3.11.26

kubernetes platform: GKE

When we deploy RabbitMQ with service type loadbalancer, below ports are exposed by default. We would like to expose only the ports 5671,5672,15671 and 15672 and we don't want to expose the other ports.

Would it be possible to achieve this? I have tried by specifying the above ports under service override section but that did not work.

ports: - appProtocol: mqtt name: mqtt nodePort: 31624 port: 1883 protocol: TCP targetPort: 1883 - appProtocol: stomp.github.io/stomp name: stomp nodePort: 30591 port: 61613 protocol: TCP targetPort: 61613 - appProtocol: amqps name: amqps nodePort: 30693 port: 5671 protocol: TCP targetPort: 5671 - appProtocol: https name: management-tls nodePort: 31240 port: 15671 protocol: TCP targetPort: 15671 - appProtocol: mqtts name: mqtts nodePort: 30779 port: 8883 protocol: TCP targetPort: 8883 - appProtocol: prometheus.io/metric-tls name: prometheus-tls nodePort: 30960 port: 15691 protocol: TCP targetPort: 15691 - appProtocol: amqp name: amqp nodePort: 30425 port: 5672 protocol: TCP targetPort: 5672 - appProtocol: http name: management nodePort: 30862 port: 15672 protocol: TCP targetPort: 15672 - appProtocol: http name: web-mqtt nodePort: 31056 port: 15675 protocol: TCP targetPort: 15675 - appProtocol: http name: web-stomp nodePort: 31672 port: 15674 protocol: TCP targetPort: 15674 - appProtocol: stomp.github.io/stomp-tls name: stomps nodePort: 30257 port: 61614 protocol: TCP targetPort: 61614
Message has been deleted

Shankar S

unread,
Mar 25, 2024, 4:56:57 AM3/25/24
to rabbitmq-users
Hi,

Could you please share any update on this. Basically we don't want the ports 61614, 8883, 1883, 61613, 15691, 15675, 15674. Attached the ports which were enabled with service type LoadBalancer.

ports.txt

Luke Bakken

unread,
Mar 26, 2024, 10:06:39 AM3/26/24
to rabbitmq-users
Please do not reply to your own message to bump it. The people who assist you here do so for free, on their own time. If someone can answer your question and feels like doing so, they will.

If this is an urgent issue I suggest looking into paid support for RabbitMQ - https://www.rabbitmq.com/contact#paid-support

Reply all
Reply to author
Forward
0 new messages