【发布时间】:2018-08-14 09:41:09
【问题描述】:
我想根据请求中 URL 的匹配来更新条件速率限制。
我找到了这些文档,https://istio.io/docs/reference/config/policy-and-telemetry/istio.policy.v1beta1/#Rule
但无法确定要使用的正确属性
作为猜测,我尝试过
apiVersion: config.istio.io/v1alpha2
kind: rule
metadata:
name: quota
namespace: istio-system
spec:
match: match(request.uri, "/A/B/93*") == true
actions:
- handler: handler.memquota
instances:
- requestcount.quota
但是那个错误
Unable to compile match condition expression: 'unknown attribute request.uri', rule='quota.rule.istio-system',
enter code here
谢谢, 布伦特
【问题讨论】:
标签: kubernetes google-kubernetes-engine rate-limiting istio