You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've come across an issue where we have 2 services running; auth-api and rabbit-mq. From the auth-ui pod we are trying to get it to find the rabbit-mq pod so it can read from the queues.
When we use a short DNS name: rabbitmq-master, I get the following error;
kubectl exec auth-api-jf2ec -i nslookup rabbitmq-master
nslookup: can't resolve '(null)': Name does not resolve
nslookup: can't resolve 'rabbitmq-master': Try again
error: error executing remote command: Error executing command in container: Error executing in Docker Container: 1
If I use the full DNS name: rabbitmq-master.default.svc.cluster.local, it works OK:
kubectl exec auth-api-jf2ec -i nslookup rabbitmq-master.default.svc.cluster.local
Name: rabbitmq-master.default.svc.cluster.local
Address 1: 10.0.61.158 ip-10-0-61-158.eu-west-1.compute.internal
nslookup: can't resolve '(null)': Name does not resolve
So we could just use the full DNS but this would then mean we need to change our deployment scripts for each customer namespace we want to use.
I've checked our cluster and the kube-dns pod is up and running.
There was one key piece of information that I missed off this issue... we were using alpine:3.3 as our base image and that doesn't support the search directive in the /etc/resolv.conf.
After upgrading to alpine:3.4 the issue is resolved.
We've come across an issue where we have 2 services running; auth-api and rabbit-mq. From the auth-ui pod we are trying to get it to find the rabbit-mq pod so it can read from the queues.
When we use a short DNS name:
rabbitmq-master
, I get the following error;If I use the full DNS name:
rabbitmq-master.default.svc.cluster.local
, it works OK:So we could just use the full DNS but this would then mean we need to change our deployment scripts for each customer namespace we want to use.
I've checked our cluster and the kube-dns pod is up and running.
This is the output of the
/etc/resolv.conf
file on the auth-api pod:Have I configured something incorrectly / not configured anything at all?
The text was updated successfully, but these errors were encountered: