【发布时间】:2020-05-17 07:38:33
【问题描述】:
我想部署两个具有不同 URL 的服务。
- match:
uri:
prefix: /pune
route:
- destination:
host: wagholi
port:
number: 8080
- match:
uri:
prefix: /pune/{location}
route:
- destination:
host: yerwada
port:
number: 8080
- match:
uri:
prefix: /pune/{local}/here
route:
- destination:
host: hadapsar
port:
number: 8080
在这种情况下,当我将位置值作为 yerwada 传递时,当我点击 API 得到 404 Not Found /pune/yerwada 时。此外,当我在本地通过 hadapsar 时,我正在传递 /pune/hadapsar/here 得到相同的错误 404 Not Found /pune/hadapsar/here。 !!!!!!
【问题讨论】:
标签: kubernetes routing kubernetes-ingress istio gateway