You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say we have the ingress in the last section of this issue. This ingress only specifies that it should route traffic by its hostname; however, when the request path contains a subdomain, it routes to a wrong one as in the following:
Good catch, thanks for the report. This behavior comes from the way haproxy's dir match type works - it's matching the pattern list with your input without start from the beginning of the string. I'll try a proper fix in the next few days, in the mean time you can work around your configuration changing pathType from Prefix to ImplementationSpecific.
Description of the problem
Let's say we have the ingress in the last section of this issue. This ingress only specifies that it should route traffic by its hostname; however, when the request path contains a subdomain, it routes to a wrong one as in the following:
OK: example.com goes to nginx-alice
OK: subdomain.example.com goes to nginx-bob
WRONG: subdomain.example.com/example.com goes to nginx-alice
Expected behavior
example.com goes to nginx-alice
subdomain.example.com goes to nginx-bob
subdomain.example.com/example.com goes to nginx-bob
Steps to reproduce the problem
(It contains two nginx Pods that print each Pod name respectively whatever path it is given)
curl
to HAProxyEnvironment information
HAProxy Ingress version:
v0.11
andv0.12
(NOT reproducible inv0.10
)Command-line options:
Global options:
Ingress objects:
The text was updated successfully, but these errors were encountered: