fix content in ratelimit (#11934)

* fix content in ratelimit

* update comments
This commit is contained in:
zirain 2022-09-20 22:53:38 +08:00 committed by GitHub
parent d3bf4c0c98
commit ae1ef2d118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -72,11 +72,9 @@ backend, is used below.
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 patch inserts the
`envoy.filters.http.ratelimit` [global envoy filter](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/filters/http/ratelimit/v3/rate_limit.proto#envoy-v3-api-msg-extensions-filters-http-ratelimit-v3-ratelimit) filter into the `HTTP_FILTER` chain.
The `rate_limit_service` field specifies the external rate limit service, `rate_limit_cluster` in this case.
The second patch defines the `rate_limit_cluster`, which provides the endpoint location of the external rate limit service.
The `rate_limit_service` field specifies the external rate limit service, `outbound|8081||ratelimit.default.svc.cluster.local` in this case.
{{< text bash >}}
$ kubectl apply -f - <<EOF