Is Traefik officially compatible with macvlan at all?

I've created a macvlan network to expose traefik directly to my network, the purpose is easy management with ipv6 slaac and routing.

I've been running into all different kind of strange issue, and almost no macvlan questions here ever got solution (op posted no conclusion)

So I just want to confirm, has anyone has ever got traefik to proxy on macvlan

I've got to the stage where treafik got ipv6 and ipv4, can ping with either v4 & v6, and my domain via cloudflare proxy can reach treafik instance. But getting following errors

  • treafik log complains ports not open, i.e. 8080 not open for api@internal
  • getting 418 error when via sub.mydomain.com
  • treafik can't discover labels of its own container

I've been trying various combination of configurations and getting some of above problems with some of the attempts, which lead me to the question, is traefik suppose to proxy off a macvlan network at all? Or only compatible with docker bridge network driver.

I would expect that Traefik doesn’t care which Docker network type is used. If you don’t find an answer here, maybe try forums.docker.com.

That's what I thought initially, then as I tried to battle these strange problems, I start to get the feeling that treafik's auto config discovery may not work at all with macvlan, been digging at official documentation and didn't find anything helpful

Share your full Traefik static and dynamic config, and docker-compose.yml if used.

Enable and check Traefik debug log and Traefik access log in JSON format, especially during requests.