Running traefik 2.8.4
I have, essentially, a map of paths that need to be redirected. For instance /asdf
to /specific-word-1
, /qwerty
to /another-path
, etc. They're not regex replacements, and there's no logical way to do the conversion. They're hardcoded, specific, redirections. All exact matches. Unfortunately none of this is something I have control over. I have ~70 of these.
What would be the nicest way to do this in Traefik? An IngressRoute
with some Rule
s to match, each with a ReplacePath
middleware? This wouldn't be too terrible to generate with some helm templating, but I was hoping for something that would be nicer and more obvious, without creating a huge number of kubernetes resources (literally 70 in this case). Is this the scenario ReplacePath
was meant to be used it?
Efficiency isn't the greatest concern, but is Traefik's rule evaluation smart enough to notice the exact matches and not evaluate rules one-by-one in order of length like it normally does? (I'm actively looking through the source code, but thought I might as well ask in case someone had good knowledge about it)