apply rate-limit-service.yaml from samples, when you try rate-limit task (#9265)

* apply rate-limit-service.yaml from samples, when you try rate-limit task

* Update content/en/docs/tasks/policy-enforcement/rate-limit/index.md

Co-authored-by: Pengyuan Bian <bianpengyuan@google.com>

Co-authored-by: Pengyuan Bian <bianpengyuan@google.com>
This commit is contained in:
John Zheng 2021-03-19 00:46:46 +08:00 committed by GitHub
parent 974dcc8848
commit 80ddb8f6b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,8 @@ backend, is used below.
requests_per_unit: 100 requests_per_unit: 100
{{< /text >}} {{< /text >}}
1. Create a global rate limit service which implements Envoy's [rate limit service protocol](https://www.envoyproxy.io/docs/envoy/latest/api-v3/service/ratelimit/v3/rls.proto). As a reference, a demo configuration can be found [here]({{< github_blob >}}/samples/ratelimit/rate-limit-service.yaml), which is based on a [reference implementation](https://github.com/envoyproxy/ratelimit) provided by Envoy.
1. Apply an `EnvoyFilter` to the `ingressgateway` to enable global rate limiting using Envoy's global rate limit filter. 1. Apply an `EnvoyFilter` to the `ingressgateway` to enable global rate limiting using Envoy's global rate limit filter.
The first patch inserts the The first patch inserts the