Skip to content

RabbitMQ Messaging Topology Kubernetes Operator: User creation fails on DNS Lookup #1470

Answered by Zerpet
rowi1de asked this question in Q&A
Discussion options

You must be logged in to vote

The problem seems to be with the usage of a host network. The Topology Operator uses kubernetes short names i.e. <svc-name>.<namespace>.svc. In your case, you seem to be able to resolve the hostname when the internal domain name is appended to the shortname.

You can use the env variable in the Topology Operator MESSAGING_DOMAIN_NAME, and set the value to the internal kubernetes domain name cluster.local. That will force the Topology Operator to use the FQDN, instead of the short name.

https://rabbitmq.com/kubernetes/operator/install-topology-operator.html#non-default-k8s-domain

Edit: Improving response with additions from @rowi1de

as I've set hostNetwork:true I also needed to override th…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rowi1de
Comment options

@Zerpet
Comment options

Answer selected by rowi1de
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #1458 on October 10, 2023 10:35.