diff --git a/core/pkg/ingress/annotations/ratelimit/main.go b/core/pkg/ingress/annotations/ratelimit/main.go index f3ca328b7..31850a90b 100644 --- a/core/pkg/ingress/annotations/ratelimit/main.go +++ b/core/pkg/ingress/annotations/ratelimit/main.go @@ -36,10 +36,10 @@ const ( defSharedSize = 5 ) -// RateLimit returns rate limit configuration for an Ingress rule -// Is possible to limit the number of connections per IP address or -// connections per second. -// Note: Is possible to specify both limits +// RateLimit returns rate limit configuration for an Ingress rule limiting the +// number of connections per IP address and/or connections per second. +// If you both annotations are specified in a single Ingress rule, RPS limits +// takes precedence type RateLimit struct { // Connections indicates a limit with the number of connections per IP address Connections Zone `json:"connections"`