Skip to content

Commit

Permalink
docs: Fix global rate limit doc for sourceCIDR type (#3256)
Browse files Browse the repository at this point in the history
* Fix global rate limt doc for sourceCIDR type

Signed-off-by: Owen Haynes <1472893+owenhaynes@users.noreply.github.com>

* update v1.0.1 doc to include type fixes

Signed-off-by: Owen Haynes <1472893+owenhaynes@users.noreply.github.com>

---------

Signed-off-by: Owen Haynes <1472893+owenhaynes@users.noreply.github.com>
  • Loading branch information
owenhaynes committed Apr 24, 2024
1 parent 8fea2bc commit c43efbc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions site/content/en/latest/tasks/traffic/global-rate-limit.md
Original file line number Diff line number Diff line change
Expand Up @@ -803,9 +803,9 @@ transfer-encoding: chunked
Here is an example of a rate limit implemented by the application developer to limit distinct users who can be differentiated based on their
IP address (also reflected in the `X-Forwarded-For` header).

Note: EG supports two kinds of rate limit for the IP address: exact and distinct.
* exact means that all IP addresses within the specified Source IP CIDR share the same rate limit bucket.
* distinct means that each IP address within the specified Source IP CIDR has its own rate limit bucket.
Note: EG supports two kinds of rate limit for the IP address: Exact and Distinct.
* Exact means that all IP addresses within the specified Source IP CIDR share the same rate limit bucket.
* Distinct means that each IP address within the specified Source IP CIDR has its own rate limit bucket.

{{< tabpane text=true >}}
{{% tab header="Apply from stdin" %}}
Expand All @@ -829,7 +829,7 @@ spec:
- clientSelectors:
- sourceCIDR:
value: 0.0.0.0/0
type: distinct
type: Distinct
limit:
requests: 3
unit: Hour
Expand Down
8 changes: 4 additions & 4 deletions site/content/en/v1.0.1/tasks/traffic/global-rate-limit.md
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,9 @@ transfer-encoding: chunked
Here is an example of a rate limit implemented by the application developer to limit distinct users who can be differentiated based on their
IP address (also reflected in the `X-Forwarded-For` header).

Note: EG supports two kinds of rate limit for the IP address: exact and distinct.
* exact means that all IP addresses within the specified Source IP CIDR share the same rate limit bucket.
* distinct means that each IP address within the specified Source IP CIDR has its own rate limit bucket.
Note: EG supports two kinds of rate limit for the IP address: Exact and Distinct.
* Exact means that all IP addresses within the specified Source IP CIDR share the same rate limit bucket.
* Distinct means that each IP address within the specified Source IP CIDR has its own rate limit bucket.

```shell
cat <<EOF | kubectl apply -f -
Expand All @@ -534,7 +534,7 @@ spec:
- clientSelectors:
- sourceCIDR:
value: 0.0.0.0/0
type: distinct
type: Distinct
limit:
requests: 3
unit: Hour
Expand Down

0 comments on commit c43efbc

Please sign in to comment.