application-gateway-kubernetes-ingress icon indicating copy to clipboard operation
application-gateway-kubernetes-ingress copied to clipboard

Wildcard Path not matched

Open trhumphries opened this issue 7 months ago • 0 comments

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

trhumphries avatar Jul 16 '24 13:07 trhumphries