Skip to content
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

Wildcard Path not matched #1631

Open
trhumphries opened this issue Jul 16, 2024 · 0 comments
Open

Wildcard Path not matched #1631

trhumphries opened this issue Jul 16, 2024 · 0 comments

Comments

@trhumphries
Copy link

trhumphries commented Jul 16, 2024

I have a Prefix path defined in my ingress of:
/v1/model//report/

The incoming requests with a path of:
/v1/model/c23ab382-6cf5-41ee-959b-a36fa6baa18d/report/72fdbd09-69c7-47aa-a560-ff9ceb096c2f

gets routed to the / instead of the path defined above

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: trh-api-high
namespace: trhapi
annotations:
appgw.ingress.kubernetes.io/appgw-ssl-certificate: wildcard-trh-com
appgw.ingress.kubernetes.io/request-timeout: '3600'
appgw.ingress.kubernetes.io/rewrite-rule-set-custom-resource: response-headers-rewrite
appgw.ingress.kubernetes.io/ssl-redirect: 'true'
spec:
ingressClassName: azure-application-gateway
rules:
- host: api.trh.com
http:
paths:
- path: /v1/model/*/report/*/
pathType: Prefix
backend:
service:
name: trh-api-high
port:
number: 80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant