Add annotation to disable logs in a location (#2144)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2018-02-25 11:38:54 -03:00 committed by GitHub
parent edb3be64ea
commit 0dee303ac2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 165 additions and 0 deletions

View file

@ -62,6 +62,7 @@ The following annotations are supported:
|[nginx.ingress.kubernetes.io/proxy-buffering](#proxy-buffering)|string|
|[nginx.ingress.kubernetes.io/ssl-ciphers](#ssl-ciphers)|string|
|[nginx.ingress.kubernetes.io/connection-proxy-header](#connection-proxy-header)|string|
|[nginx.ingress.kubernetes.io/enable-access-log](#enable-access-log)|"true" or "false"|
**Note:** all the values must be a string. In case of booleans or number it must be quoted.
@ -442,3 +443,11 @@ Using this annotation will override the default connection header set by nginx.
```yaml
nginx.ingress.kubernetes.io/connection-proxy-header: "keep-alive"
```
### Enable Access Log
In some scenarios could be required to disable NGINX access logs. To enable this feature use the annotation:
```yaml
nginx.ingress.kubernetes.io/enable-access-log: "false"
```