traefik-helm-chart
traefik-helm-chart copied to clipboard
Watch specific namespaces without using rbac.namespaced
Allow using
providers:
kubernetesCRD:
enabled: true
namespaces:
- default
kubernetesIngress:
enabled: true
namespaces:
- default
without making the traefik deployment namespaced with rbac.namespaced
Use case: Upgrading a cluster incrementally and migrating traefik configuration one namespace at a time
I believe this line should be changed https://github.com/traefik/traefik-helm-chart/blob/master/traefik/templates/_podtemplate.tpl#L124
to check if len(namespaces) >0
I accomplished this by keeping rbac.namespaced=false
and manually adding "--providers.kubernetescrd.namespaces=whatever,namespaces,you,want"
to the arguments. It seems like that's the only place where it's being used...