-
Notifications
You must be signed in to change notification settings - Fork 16
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
multiple servers behind one service #30
Comments
@koehnik I'm not sure how a load balanced scenario would work. It looks like it's correctly publishing two services for the same service, which is what you expect. If that's the case, you just need to make one of the services run on a different port. Since both containrs are on the same host and the external traefik instance needs to be able to talk to them both, they must be exposed on different ports. Try binding one of the services on 8081 instead. |
@chetan not totally correct. These 2 services run on different hosts. So they got an ipvlan ip-address and these are defined in my compose.yml. And the label "traefik.docker.network=q-srv" points to the right network. So it collects the IP and set the rules. So i think that there is a bug, which overrides both of them and doesn't seperate them because of 2 containers referencing the same servicename but other IPs. Addition: If i restart one of the containers, the latest restarted containers IP is set for both. |
Ah, I see. In that case, I think it's likely a "last update wins" scenario. traefik-kop is designed to publish distinct services for each container so the fact that it's even sort-of handling this case is a mystery to me. I don't think this will work without some changes but you can try a workaround like adding the |
Hello there,
got a question which is based on a service which has multiple servers in background.
With the docker deamon it works like charme. But i ran into this issue with traefik-kop.
I want to publish multiple instances behind one router and one service (load balancing in fact).
Here are my labels for the container1 and the same on container2:
But everytime i start the other container, the IP will bei overwritten on both servers with the latest discovered ip from traefik-kop.
So is it possible to do that?
Can you give me a hint how to publish both IPs to this service as servers? Would be great :)
The text was updated successfully, but these errors were encountered: