Add support for rate limiting in ingress rule locations
This commit is contained in:
parent
f8ea58882b
commit
ccaf15cdd4
3 changed files with 266 additions and 0 deletions
|
|
@ -156,6 +156,12 @@ http {
|
|||
}
|
||||
{{ end }}
|
||||
|
||||
{{/* build all the required rate limit zones. Each annotation requires a dedicated zone */}}
|
||||
{{/* 1MB -> 16 thousand 64-byte states or about 8 thousand 128-byte states */}}
|
||||
{{ $zone := range (buildRateLimitZones .servers) }}
|
||||
{{ $zone }}
|
||||
{{ end }}
|
||||
|
||||
{{ range $server := .servers }}
|
||||
server {
|
||||
server_name {{ $server.Name }};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue