GCP Kubernetes cannot connect to RabbitMQ server

1/14/2019

I have a docker image on the google cloud platform that I would like to run. Part of this script attempts to connect to a RabbitMQ server (located in the same subnet). This does not work.

I've taken the following steps to try and solve it:

  • I have tried connecting to both the internal and external IP-address of the RabbitMQ server.
  • I have enabled VPC-native (alias IP)
  • I have checked I can connect to the internet from my docker image
  • I have checked that my docker image can connect to RabbitMQ when run locally
  • I have checked that the server can connect to the internal IP-address from the RabbitMQ server (by pinging it)

I think I probably have an incorrect setting in my kubernetes engine, but I've looked for quite some time and I cannot find it.

Does anybody know how to connect to a RabbitMQ server from a Kubernetes pod running in the Google Cloud Platform?

-- Nathan
docker
google-cloud-platform
kubernetes
rabbitmq

0 Answers