From 520c76a3883ee06e559127844f6a22a998fbd8d7 Mon Sep 17 00:00:00 2001 From: Yuki Sawa Date: Wed, 25 Nov 2020 00:15:12 -0800 Subject: [PATCH] Set ratelimit filter to v3 api Signed-off-by: Yuki Sawa --- examples/envoy/proxy.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/envoy/proxy.yaml b/examples/envoy/proxy.yaml index 4c5605d1d..0bd780db7 100644 --- a/examples/envoy/proxy.yaml +++ b/examples/envoy/proxy.yaml @@ -47,8 +47,9 @@ static_resources: codec_type: AUTO stat_prefix: ingress http_filters: - - name: envoy.rate_limit - config: + - name: envoy.filters.http.ratelimit + typed_config: + "@type": type.googleapis.com/envoy.extensions.filters.http.ratelimit.v3.RateLimit domain: rl request_type: external stage: 0 @@ -74,7 +75,7 @@ static_resources: rate_limits: - actions: - source_cluster: {} # This action's value is populated by the "service-cluster" arg passed in when starting Envoy. In this example, it's "proxy" (see docker-compose-example.yml) - - destination_cluster: {} # This action's value is populated by the value set in the above "cluster" field -- "mock" + - destination_cluster: {} # This action's value is populated by the value set in the above egress "cluster" field -- "mock" - match: prefix: /header route: