Mirroring using labels

Hello!

I was checking docs for traffic mirroring, and it seems is not working when using labels.

https://doc.traefik.io/traefik/routing/services/#mirroring-service

Is there are technical limitation for that?

Our whole setup is using labels, so each service (in its own GIT repo) has its own docker compose and registers itself into the Traefik that routes everything (so no-one needs to touch "traefik's setup directly).

Just under the paragraph of the mirroring-service link:

:information_source: Supported Providers
This strategy can be defined currently with the File or IngressRoute providers.
Supported Providers

Yes, I saw that. My question is more in the line of

  • Why is it only supported on those providers?
  • Is there any reason not to have support for labels?

Hello @xavivars

Thanks a lot for your interest in Traefik.

If you would like to see how the mirroring features works I'd like to invite you to see the latest workshop Advanced Load Balancing with Traefik 2.5 where I presented that feature and a few mores.