Multiple instances of Traefik in different kubernetes namespaces
This error may occur when Traefik believes that no namespaces were configured; that is, the TOML configuration you outlined
[kubernetes]namespaces = ["engineering"]
is not becoming effective.
I can think of two reasons:
- In addition to the TOML configuration file, you are also passing a
--kubernetes
command-line argument to Traefik (through anargs
entry in the Deployment manifest). This would disable thenamespaces
option. - The file is not properly mounted into the Deployment, causing the default
namespaces
value (the empty list) to be effective. To tell whether that's truly the case, we need to see your full ConfigMap and the relevant volume sections of your Deployment manifests.