Unable to get multiple traefik running in the same Kubernetes (allowCrossNamespace=false)


I'm trying to get multiple traefik in different namespaces on Kubernetes, but it seems that allowCrossNamespace=false to isolate them does not work. Is there any recipe that can help us on setting up multiple traefik on the same cluster and completely isolated from each other ?

The issue we're having is the different treafik talking to services in other namespaces.


hello @frankyBoy

Thanks for using Traefik and joining the Traefik community!

Yes, this is possible to deploy more Traefik instances on the same Kubernetes cluster.
The following configuration can be set to achieve this:

  • namespaces - by default Traefik watches all namespaces, on the provider configuration you can list the namespaces which Traefik should watch for configuration changes

  • labelselector - by default Traefik processes all resources, but if you specify the label on the provider level, then you can use the label on the resources that should be processed by Traefik

  • ingressClass - you can use the annotation that can be used to select resources that should be processed by Traefik. Again the value of ingressclass kubernetes./ingress.class key can be configured on the provider level.

Hope that helps!
let us know!

Thank you very much for your help @jakubhajek . I'll definitely try this and let you know.