【发布时间】:2021-10-18 08:54:29
【问题描述】:
在 Istio 虚拟服务中,我有这个工作匹配块:
- match:
- uri:
prefix: "/whatever"
一切正常。但是现在,除了 uri,我还需要匹配 2 个查询参数。我试过这个:
- match:
- uri:
prefix: "/whatever"
queryParams:
app-id:
exact: "whatever"
token:
exact: "thisisthetoken"
它不起作用。它不会重定向到目的地。我做错了什么?
【问题讨论】:
-
失败的请求是什么?
-
请求
GET /whatever?app-id=whatever&token=thisisthetoken不会重定向到目的地 -
是的。那是正确的。诡异的。您是否在输入服务的 FQDN?如果您只输入名称,有时会带来麻烦。
标签: kubernetes istio