Skip to content

Commit

Permalink
Set ratelimit filter to v3 api (#196)
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Sawa <[email protected]>
  • Loading branch information
ysawa0 authored Nov 25, 2020
1 parent cb73b5b commit bc6d7b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/envoy/proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit bc6d7b7

Please sign in to comment.