[stable/traefik] Allow enabling traefik access logs (#1302)

* Added `accessLogs` section for traefik config

* Update Traefik chart README

* Fix typos and format consistency issues

* Increment Traefik chart minor version
This commit is contained in:
Kevin J. Qiu
2017-07-06 09:52:41 -07:00
committed by Vic Iglesias
parent 604e452821
commit cb43878ddc
4 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: traefik
version: 1.6.0
version: 1.7.0
appVersion: 1.3.1
description: A Traefik based Kubernetes ingress controller with Let's Encrypt support
keywords:
+3
View File
@@ -119,6 +119,9 @@ The following tables lists the configurable parameters of the Traefik chart and
| `gzip.enabled` | Whether to use gzip compression | `true` |
| `kubernetes.namespaces` | List of Kubernetes namespaces to watch | All namespaces |
| `kubernetes.labelSelector` | Valid Kubernetes ingress label selector to watch (e.g `realm=public`)| No label filter |
| `accessLogs.enabled` | Whether to enable Traefik's access logs | `false` |
| `accessLogs.filePath` | The path to the log file. Logs to stdout if omitted | None |
| `accessLogs.format` | What format the log entries should be in. Either `common` or `json` | `common` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example:
+7
View File
@@ -47,6 +47,13 @@ data:
labelselector = {{ .Values.kubernetes.labelSelector | quote }}
{{- end}}
{{- end}}
{{- if .Values.accessLogs.enabled }}
[accessLogs]
{{- if .Values.accessLogs.filePath }}
filePath = "{{ .Values.accessLogs.filePath }}"
{{- end}}
format = "{{ .Values.accessLogs.format }}"
{{- end}}
{{- if .Values.acme.enabled }}
[acme]
email = "{{ .Values.acme.email }}"
+5
View File
@@ -49,6 +49,11 @@ service:
# key: value
gzip:
enabled: true
accessLogs:
enabled: false
## Path to the access logs file. If not provided, Traefik defaults it to stdout.
# filePath: ""
format: common # choices are: common, json
# Kubernetes ingress filters
#kubernetes:
# namespaces: