[Documentation] Adding precisely how to reference Kubernetes-CRD Middleware from other providers #6318
Labels
area/documentation
area/provider/k8s
kind/enhancement
a new or improved feature.
priority/P2
need to be fixed in the future
status/5-frozen-due-to-age
Projects
Milestone
Do you want to request a feature or report a bug?
Feature
What did you expect to see?
A Kubernetes-crd Middleware lives in kubernetes, and as such, has a kubernetes name (for instance
fooName
) and a kubernetes namespace (for instancebarNS
))If one needs to configure traefik via another provider a routing using that middleware (for instance kubernetes Ingress middleware with the current master branch (commit 7c430e5 in my case) ), one needs to give the correct traefik name of the namespace. After some testing and a view of the dashboard, it appears the correct name is
barNS-fooName@kubernetescrd
As this might be unclear for people getting familiar, I suggest the rule (
<K8SNamespace>-<K8SName>@kubernetescrd
) be written in the documentation.Furthermore, and I'll probably create some bug reports on that later, this naming rule can generate collision, for instance if one has a namespace
foo-bar
containing a middlewarebaz
and a namespacefoo
containing a middlewarebar-baz
. This might require to change to traefik naming rule for kubernetes-crd, possibly before getting that rule written down in the documentation. I suggest using a.
as separator, as this character is forbidden in kubernetes objet names.The text was updated successfully, but these errors were encountered: