I am a long time user of Traefik 1.x, and would like to migrate to Traefik 2.x. It is also good news that Kubernetes Ingress resource has graduated to Stable in Kubernetes 1.19. With this I am happy that Traefik made the decision to support this K8s API resource and I won't need to migrate all of the ingresses (300+ per cluster) to the new Traefik 2.x configuration model.
I've patched the existing K8s daemonset configured for Traefik 1.7.x as such and to my surprise most things Ingresses work out of the box with no changes to Ingress resouces:
One thing that I cannot figure out (documentation for it seems to be missing from here Kubernetes Ingress - Traefik) is PathPrefixStrip and redirect annotations I am using on Ingress Resources with Traefik 1.7.x - they appear to be ignored entirely with Traefik 2.4.8.
Is my understanding right that to strip the configured Paths and implement Redirects I would need to implement them with Middleware configs?
What is not clear is - since I am not going to use IngressRoute resources - how do I connect my KubernetesIngress objects to Middlewares?
Perhaps there is another way to support PathPrefixStrip and Redirects while using KubernetesIngress configuration?
New configuration for Traefik 2.x using KubernetesIngress (middleware reference order in Ingress annotation is important - first we want the PathPrefixStrip and then a Redirect):