-
Notifications
You must be signed in to change notification settings - Fork 672
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setting
disabled = true
on a route should disable the virtual host …
…global rate limit policy (#5657) Support disabling global rate limiting on individual routes by setting disabled=true. Fixes #5685. Signed-off-by: shadi-altarsha <shadi.altarsha@reddit.com>
- Loading branch information
1 parent
6219d90
commit 1d0a774
Showing
11 changed files
with
561 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
## Specific routes can now opt out of the virtual host's global rate limit policy | ||
|
||
Setting `rateLimitPolicy.global.disabled` flag to true on a specific route now disables the global rate limit policy inherited from the virtual host for that route. | ||
|
||
### Sample Configurations | ||
In the example below, `/foo` route is opted out from the global rate limit policy defined by the virtualhost. | ||
#### httpproxy.yaml | ||
```yaml | ||
apiVersion: projectcontour.io/v1 | ||
kind: HTTPProxy | ||
metadata: | ||
name: echo | ||
spec: | ||
virtualhost: | ||
fqdn: local.projectcontour.io | ||
rateLimitPolicy: | ||
global: | ||
descriptors: | ||
- entries: | ||
- remoteAddress: {} | ||
- genericKey: | ||
key: vhost | ||
value: local.projectcontour.io | ||
routes: | ||
- conditions: | ||
- prefix: / | ||
services: | ||
- name: ingress-conformance-echo | ||
port: 80 | ||
- conditions: | ||
- prefix: /foo | ||
rateLimitPolicy: | ||
global: | ||
disabled: true | ||
services: | ||
- name: ingress-conformance-echo | ||
port: 80 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.