Docker DNS Service Discovery "no such host" #4517
Replies: 2 comments 7 replies
-
I'm not sure what's happening here. The configuration you shared looks correct to me. Since I'm not familiar with your setup, let me ask a dumb question: can you confirm the host
The IP address exposed by memberlist can be configured setting |
Beta Was this translation helpful? Give feedback.
-
@SIMULATAN @pracucci encountering exact same issue with Mimir running on K8s
|
Beta Was this translation helpful? Give feedback.
-
I'm running two mimir nodes in a stack and want to use DNS Service Discovery to connect the two nodes together.
Therefore, I configured
dns+tasks.monitoring_mimir
as ajoin_member
inmimir.yml
.Unfortunately, when it tries to do the DNS query, this is printed in the console:
However, when running
dig tasks.monitoring_mimir
, it works just as expected!(both when doing a
docker exec
and using that as the entrypoint)Also, when looking at the dashboard, I can see that the member for some reason uses the wrong interface?
That one is the bridge interface made when publishing ports.
I tried setting the name manually to the correct interface name (
eth0
) by usinginstance_interface_names
, but it's no use.Logfile
mimir.yml
docker-compose.yml
I tried multiple combinations of using
instance_interface_names
,instance_addr
, service discovery prefixes, network drivers, nodes, architectures, replication modes and more, but nothing worked, it keeps erroring with the above logs.Another observation was that it tries to connect to some IPs in the
192.168.x.x
subnet, even though I didn't add that range anywhere and the DNS query doesn't return those IPs.Beta Was this translation helpful? Give feedback.
All reactions