New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Traefik v3 breaks Kubernetes Ingress Prefix Path Regex #10672
Comments
Hey @fkollmann, |
If you set |
I feel that this bug shouldn't have been closed?
I've tried writing it two other ways and the v3 parser does not treat either as a regex:
|
Hello @jim-barber-he, Could you confirm that the bug you described may be fixed by this PR? |
Hi @nmengin, Author of the mentioned PR here. I don't think my PR fixes this issue. Further more it might even make the workaround ( Digging through the code it seems like that with the current implementation it is not possible to configure ingress paths with regex matching. Only Maybe using path type To reiterate, it is not mentioned in the migration guide that it is no longer possible to use regex for routing in this use case. So I think this is a real bug and should be reopened. Disclaimer: Unfortunately I have no experience with Kubernetes ingress configuration. I purely went with what's in the code and might have missed something. So take this with a grain of salt. |
Hello @HalloTschuess, Thank you for your feedback.
From what I understand in this issue, such behavior is not expected indeed. |
Welcome!
What did you do?
I upgraded from Traefik v2 to v3. Then I realized that all Kubernetes Ingress configurations which use a regex within as part of the prefix path (
pathType=Prefix
) break.Workaround
Add the following lines to the static config:
Suggestions
pathType=Prefix
PathRegexp('^...')
insternally, insteadPathRegexp
value totraefik.ingress.kubernetes.io/router.pathmatcher
annotationWhat did you see instead?
Kubernetes Ingress configurations which use a regex within as part of the Prefix path no longer work.
What version of Traefik are you using?
v3.0.0
What is your environment & configuration?
Kubernetes Ingress Example:
If applicable, please paste the log output in DEBUG level
No response
The text was updated successfully, but these errors were encountered: