Merge pull request #1131 from zjj2wry/limit-rate-configuration

Add short help doc in configuration for nginx limit rate
This commit is contained in:
Manuel Alejandro de Brito Fontes 2017-08-15 11:07:34 -03:00 committed by GitHub
commit ae781a9296

View file

@ -204,6 +204,13 @@ The annotations `ingress.kubernetes.io/limit-connections`, `ingress.kubernetes.i
If you specify multiple annotations in a single Ingress rule, `limit-rpm`, and then `limit-rps` takes precedence.
The annotation `ingress.kubernetes.io/limit-rate`, `ingress.kubernetes.io/limit-rate-after` define a limit the rate of response transmission to a client. The rate is specified in bytes per second. The zero value disables rate limiting. The limit is set per a request, and so if a client simultaneously opens two connections, the overall rate will be twice as much as the specified limit.
`ingress.kubernetes.io/limit-rate-after`: sets the initial amount after which the further transmission of a response to a client will be rate limited.
`ingress.kubernetes.io/limit-rate`: rate of request that accepted from a client each second.
To configure this setting globally for all Ingress rules, the `limit-rate-after` and `limit-rate` value may be set in the NGINX ConfigMap. if you set the value in ingress annotation will cover global setting.
### SSL Passthrough