mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
committed by
Vic Iglesias
parent
604e452821
commit
cb43878ddc
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user