Using traefik 2.2 deployed in k8s with the following args (and the docker.socket mounted as hostPath: Socket volume to the container in my traefik pod, I am able to see both docker swarm and the kubernetes-crd as providers in traefik:
Traefik has visibility of containers created via both orchestrators and I am able to successfully route to services within kubernetes with ingressroutes/rules.
However I CANNOT route to swarm containers, although I can see docker swarm containers in the dashboard (with the correct IP listed for the container/service and with the correct router associated).
I assume this is a routing issue between the k8s CNI and the docker swarm overlay network as I am not able to ping or connect to any containers on an overlay network from the traefik pod.
Some screenshots of the dashboard:
Is there any way of running this in a mixed mode so I can proxy both swarm and kubernetes via a single traefik deployment?
I understand this is probable a fairly "out there" request, but the reasoning behind this is that I am trying to migrate 50 odd swarm services to kubernetes and I don't wish to do this in a big bang approach so this seemed like a "fun" thing to try!
Thanks in advance.