How to connect to local rabbitmq server over AMQP deployed in Kubernetes #9540
Replies: 2 comments
-
This is a fairly generic Kubernetes question, there isn't much specific to RabbitMQ if you use our Cluster Operator. If you DIY a deployment, this blog explains what's involved (we do not recommend DIY these days). There are at least several options:
"Target machine actively refused" is TCP speak for "port access was refused". Also, you cannot use user |
Beta Was this translation helpful? Give feedback.
-
If you skip the You can also define the service you want directly in the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I am trying to connect to local rabbitmq server. I can easily access management UI using the URL http://localhost:15672/#/. In order for above URL to work I exposed the rabbitmq pod using the below command.
kubectl -n default pod rabbitmq-server-0 --type LoadBalancer --port 15672
But I can not access AMQP based rabbitmq service as it is not exposed. I don't know the way to expose it and make it public, so that I can access it using my program.
When I try to connect using my C# program, it throws error.
No connection could be made because the target machine actively refused it.
Is there a way to access both management UI on port 15672 and rabbitmq-service on 5672?
Beta Was this translation helpful? Give feedback.
All reactions