How to use with docker swarm? #31
Replies: 6 comments 2 replies
|
Not working, because in swarm you need to use service labels, and not container labels. |
|
This my test stack . You can see that in a swarm stack, it's better to put labels at service level, because tasks can move from one host to another without warning. That's why, for swarm people, we need to read the service labels in place of the container. No need of combined reading. I'm not going to propose a PR because my GO is very basic ( i'm a bash, python and node writer) but the Go docker api have all the necessary features to adapt your code |
|
you could add a tsdproxy per server. like this https://almeidapaulopt.github.io/tsdproxy/docs/scenarios/2i-2docker-1tailscale/ when a container moves it will start normally on the other container. |
|
Thats right, but how did you proceed when you have 8 replicas in the cluster and 2 or 3 on the same host. ..... with the same set of labels ?? Thats the real reason of service labels. |
|
sorry, spend some time with other services... My working setup on a single host: startet nginx with this: ===> NOT WORKING WITH SWARM: ===> tried also with this: How can I debug further to identify why requests to the Tailscale domain fail in the Swarm setup? |
|
thank you. network was key. but I still deploy global ;) |
Uh oh!
There was an error while loading. Please reload this page.
Hi
I'm using docker swarm with 9 nodes and have been struggling with networking, tailscale sidecars/macvlan, https several times. So this solutions sounds great.
But do I need a tsdproxy on every node, as swarm normally manages redirection between nodes.
Could anybody already test it with swarm?
All reactions