I wanted to setup ingress with query parameter on path based routing which does not work if I usethe question mark
? in URL path.
Basically I have multiple up-streams and I want to route based on path matching string and query parameter.
I am trying to configure ingress in this way, but it does not work when I use
? in the request URL path.
spec: rules: - host: foo.example.com http: paths: - backend: serviceName: service-1 servicePort: 8080 path: /.*(foo).*
It works when use
foo in URL path as
But it does not work if I use query parameter
It says “no Route matched with those values”
I also have tried to escape the ‘?’ as
path: /.*\?(foo).*, in this case it does not match any route and always getting “no Route matched with those values”
Can you please suggest how can I get this working ? is there any plugin I can use ?