Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Lawton committed Nov 6, 2024
1 parent 9aa88fc commit 12d8c11
Showing 1 changed file with 24 additions and 20 deletions.
44 changes: 24 additions & 20 deletions doc/how-to/rate-limiting/multliple-rlp/multi-rlp-same-section.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,18 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: toystore
limits:
"bob-limit":
rates:
- limit: 2
duration: 10
unit: second
when:
- selector: metadata.filter_metadata.envoy\.filters\.http\.ext_authz.identity.userid
operator: eq
value: bob
defaults:
strategy: merge
limits:
"bob-limit":
rates:
- limit: 2
duration: 10
unit: second
when:
- selector: metadata.filter_metadata.envoy\.filters\.http\.ext_authz.identity.userid
operator: eq
value: bob
EOF
```

Expand All @@ -166,16 +168,18 @@ spec:
group: gateway.networking.k8s.io
kind: HTTPRoute
name: toystore
limits:
"alice-limit":
rates:
- limit: 5
duration: 10
unit: second
when:
- selector: metadata.filter_metadata.envoy\.filters\.http\.ext_authz.identity.userid
operator: eq
value: alice
defaults:
strategy: merge
limits:
"alice-limit":
rates:
- limit: 5
duration: 10
unit: second
when:
- selector: metadata.filter_metadata.envoy\.filters\.http\.ext_authz.identity.userid
operator: eq
value: alice
EOF
```
> **Note:** It may take a couple of minutes for the RateLimitPolicy to be applied depending on your cluster.
Expand Down

0 comments on commit 12d8c11

Please sign in to comment.