Kubernetes ingress routing- Asterisk (*) is not working in ingress Path rules

3/2/2019

We have various Asp.net core containers with REST APIs hosted in Azure Kubernetes Service. Each REST API service implements many HTTP methods with different routes but has common base route (based on controller name).

Requirements is to route the request to different service based starting route value, e.g. All requests starting with “/user” route user service or products APIs requests to product service. We have added path as "/user/* ", "/product/* " in the path section of the kubernetes ingress. Asterisk (*) is not working

-- sangamesh yaragol
azure
azure-aks
azure-kubernetes
kubernetes
kubernetes-ingress

1 Answer

3/2/2019

According to this you need to use regex.

path: /foo/.*
-- 4c74356b41
Source: StackOverflow