Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwarmMode - 1.13 RC2 - DNS RR - Individual IPs not retrieved #913

Closed
NGalak opened this issue Nov 29, 2016 · 1 comment
Closed

SwarmMode - 1.13 RC2 - DNS RR - Individual IPs not retrieved #913

NGalak opened this issue Nov 29, 2016 · 1 comment

Comments

@NGalak
Copy link

NGalak commented Nov 29, 2016

Dear,

When creating a service with --endpoint-mode dnsrr, the individual IPs are not retrieved by Traefik.

Purpose: try to avoid double level of LB: Traefik and Swarm: "You can configure the service to use DNS round-robin directly without using a VIP, by setting the --endpoint-mode dnsrr when you create the service. DNS round-robin is useful in cases where you want to use your own load balancer." (https://docs.docker.com/engine/swarm/networking/).

Service creation:
docker service create --name guid --replicas 3 --mount type=bind,src=/etc/hostname,dst=/tmp/worker_hostname,readonly --network services --endpoint-mode dnsrr --label traefik.port=9000 swarm-mode-guid:1

Backend URL retrieved by Traefik:
{"server-guid":{"url":"http://:9000","weight":1}}

Internal Swarm Mode DNS:
nslookup guid
Name: guid
Address 1: 10.0.0.12 guid.3.hwnqvf50rfrsdrp8cwu61aepf.services
Address 2: 10.0.0.10 guid.1.u4ec657n9rxf2u5uhr99un9hp.services
Address 3: 10.0.0.11 guid.2.t695dbbtslm805njqmd40gejd.services

When using a VIP and integrated Swarm LB, everything works OK:
{"server-guid":{"url":"http://10.0.0.10:9000","weight":1}}

Thanks alot for Traefik.

Best regards

Nian.

@emilevauge
Copy link
Member

Duplicate of #833

@traefik traefik locked and limited conversation to collaborators Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants