Traefik Hub looks like an awesome product so I wanted to check it out. Initial installation seemed easy enough but now I've hit a road block.
It doesn't seem like any of the networks that my containers are attached to, are being listed in the Hub.
I already had a traefik instance running in my local swarm and in the yaml, there is the following config:
All the containers currently exposed via traefik inside our network (including the hub agent) have the same config i.e. they're in the same network.
However, when I look at those services in the Hub, they don't have any networks listed which makes publishing them impossible.
Any pointers would be greatly appreciated!
sorry for the late reply.
I actually tried to reproduce that issue, but I failed.
Are you trying that with compose or swarm? Can I have your stack files or at least a minimal reproducible case?
I'd really love to figure out the root case, I just don't get down to it.
Hey, no worries
Here are the stacks. I changed them slightly so as to remove anything personally identifiable.
test: ["CMD", "curl", "-X", "POST", "-H", "Content-Type: text/plain", "--data", "blabla", "http://someurl"]
#dependency: network traefik-public
#dependency: secrets for certificates
#dependency: configs for dynamic configuration
# Enable Hub communication (open the port 9900 and 9901 by default)
- "--pilot.token=%a token%
- node.role == manager
- "traefik.http.routers.dashboard.rule=Host(`traefik.myhost.at`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))"
# Dummy service for Swarm port detection. The port can be any valid integer value.
- source: dynamic_traefik_yaml_2022
# Start the agent with the latest version
- --hub.token=%a token%
As you can see we're using Swarm.
Thank you for taking a look at this!
Do you still face this issue?
We haven't been able to reproduce it on our side.
Yes, I do but to be honest I haven't been trying to resolve it the last few weeks. I was really just looking to test it and right now I don't really have the time to dig into it deeper.