diff --git a/traefik/templates/_podtemplate.tpl b/traefik/templates/_podtemplate.tpl index ca343ee5f..d07443b7d 100644 --- a/traefik/templates/_podtemplate.tpl +++ b/traefik/templates/_podtemplate.tpl @@ -485,8 +485,8 @@ {{- if .access.filePath }} - "--accesslog.filepath={{ .access.filePath }}" {{- end }} - {{- if .access.bufferingsize }} - - "--accesslog.bufferingsize={{ .access.bufferingsize }}" + {{- if .access.bufferingSize }} + - "--accesslog.bufferingsize={{ .access.bufferingSize }}" {{- end }} {{- if .access.filters }} {{- if .access.filters.statuscodes }} diff --git a/traefik/tests/traefik-config_test.yaml b/traefik/tests/traefik-config_test.yaml index 852c0aa19..8a154dd11 100644 --- a/traefik/tests/traefik-config_test.yaml +++ b/traefik/tests/traefik-config_test.yaml @@ -392,6 +392,7 @@ tests: enabled: true format: json filePath: "/data/log" + bufferingSize: 100 asserts: - contains: path: spec.template.spec.containers[0].args @@ -402,3 +403,6 @@ tests: - contains: path: spec.template.spec.containers[0].args content: "--accesslog.filepath=/data/log" + - contains: + path: spec.template.spec.containers[0].args + content: "--accesslog.bufferingsize=100" diff --git a/traefik/values.yaml b/traefik/values.yaml index 1877fff86..b77539d32 100644 --- a/traefik/values.yaml +++ b/traefik/values.yaml @@ -222,7 +222,8 @@ logs: # By default, the logs use a text format (common), but you can # also ask for the json format in the format option # format: json - # By default, the level is set to ERROR. Alternative logging levels are DEBUG, PANIC, FATAL, ERROR, WARN, and INFO. + # By default, the level is set to ERROR. + # Alternative logging levels are DEBUG, PANIC, FATAL, ERROR, WARN, and INFO. level: ERROR access: # To enable access logs