question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RabbitMQ - support Kubernetes internal DNS routing

See original GitHub issue

**Output of the info page **

    rabbitmq (5.18.1)
    -----------------
      - instance #0 [OK]
      - Collected 0 metrics, 0 events & 1 service check

and from logs:

2017-10-31 14:22:10 UTC | ERROR | dd.collector | checks.rabbitmq(rabbitmq.py:190) | Error executing check: Cannot open RabbitMQ API url: queues Invalid URL 'queues': No schema supplied. Perhaps you meant http://queues?
2017-10-31 14:22:10 UTC | ERROR | dd.collector | checks.rabbitmq(rabbitmq.py:193) | error while contacting rabbitmq (rabbitmq-management.default.svc.cluster.local:443/api/), setting aliveness to CRITICAL for vhosts: {}

Additional environment details (Operating System, Cloud provider, etc):

  • CoreOS
  • AWS

Steps to reproduce the issue:

  1. Override datadog docker image to support RabbitMQ
  2. Enter address following convention <your_service>.<your_namespace>:<port>
  3. Start pod with datadog Daemon Set

Describe the results you received: I got the logs described above meaning that somewhere in the process URL is changed to empty string. That’s why I got message Invalid URL 'queues': No schema supplied. Perhaps you meant http://queues?

Describe the results you expected: Be able to route your traffic internally without the need to use external DNS

Additional information you deem important (e.g. issue happens only occasionally): curl https://rabbitmq-management.default results in read timeout. curl rabbitmq-management.default:443 results in proper response so we are able to connect from the machine.

If I add AWS ELB alias or IP I am able to get traffic.

I know it’s more of a feature request but I hope you will look into it.

Cheers, Sebastian

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sdomagalacommented, Nov 22, 2017

Hello @gmmeyer, sorry for the late reponse. It appears the link you provided works! I don’t know why http is served over 443 in Kubernetes, it didn’t cross my mind to check it 😕

Thanks for the help!

1reaction
gmmeyercommented, Nov 13, 2017

Can you do the same for

curl -vvvvv http://rabbitmq-management.default:443
Read more comments on GitHub >

github_iconTop Results From Across the Web

Using RabbitMQ Cluster Kubernetes Operator
Using RabbitMQ Cluster Kubernetes Operator. Overview. This guide covers how to deploy Custom Resource objects that will be managed by the RabbitMQ Cluster ......
Read more >
Deploying RabbitMQ on Kubernetes using RabbitMQ Cluster ...
RabbitMQ up and running on Kubernetes and test using a simple Golang application. Well, the word RabbitMQ is quite heard across the DevOps ......
Read more >
kubernetes - make pod resolve external service name via DNS
Using strace I found that the first connection is routed to the wrong (HTTP) port of rabbitmq, while the second goes to AMQP...
Read more >
Coarse Parallel Processing Using a Work Queue - Kubernetes
# Note the rabbitmq-service has a DNS name, provided by Kubernetes: root@temp-loe07:/# nslookup rabbitmq-service Server: 10.0.0.10 Address: 10.0 ...
Read more >
Deploying a stateful set application (RabbitMQ) with MTLS ...
Headless service is the service that gives the pods their stable DNS record. as kubernetes gives the headless service also a full DNS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found