diff --git a/charts/core/traefik/Chart.yaml b/charts/core/traefik/Chart.yaml index 439e671f7e7..83955bae9f8 100644 --- a/charts/core/traefik/Chart.yaml +++ b/charts/core/traefik/Chart.yaml @@ -22,7 +22,7 @@ sources: - https://github.com/traefik/traefik-helm-chart - https://traefik.io/ type: application -version: 11.2.2 +version: 11.3.0 annotations: truecharts.org/catagories: | - network diff --git a/charts/core/traefik/questions.yaml b/charts/core/traefik/questions.yaml index 3a1f50c867c..b08fa67fd39 100644 --- a/charts/core/traefik/questions.yaml +++ b/charts/core/traefik/questions.yaml @@ -154,6 +154,16 @@ questions: description: "Panics" - value: "DEBUG" description: "Debug" + - variable: format + label: "General Log format" + schema: + type: string + default: "common" + enum: + - value: "common" + description: "Common Log Format" + - value: "json" + description: "JSON" - variable: access label: "Access Logs" schema: @@ -233,7 +243,16 @@ questions: description: "Keep" - value: "drop" description: "Drop" - + - variable: format + label: "Access Log format" + schema: + type: string + default: "common" + enum: + - value: "common" + description: "Common Log Format" + - value: "json" + description: "JSON" - variable: middlewares label: "" group: "Middlewares" diff --git a/charts/core/traefik/templates/_args.tpl b/charts/core/traefik/templates/_args.tpl index fba3fe41ff5..95487d14a33 100644 --- a/charts/core/traefik/templates/_args.tpl +++ b/charts/core/traefik/templates/_args.tpl @@ -107,17 +107,13 @@ args: {{- end }} {{- end }} {{- with .Values.logs }} - {{- if .general.format }} - "--log.format={{ .general.format }}" - {{- end }} {{- if ne .general.level "ERROR" }} - "--log.level={{ .general.level | upper }}" {{- end }} {{- if .access.enabled }} - "--accesslog=true" - {{- if .access.format }} - "--accesslog.format={{ .access.format }}" - {{- end }} {{- if .access.bufferingsize }} - "--accesslog.bufferingsize={{ .access.bufferingsize }}" {{- end }} diff --git a/charts/core/traefik/values.yaml b/charts/core/traefik/values.yaml index 9af4a6194b6..03eab001903 100644 --- a/charts/core/traefik/values.yaml +++ b/charts/core/traefik/values.yaml @@ -57,18 +57,13 @@ providers: logs: # Traefik logs concern everything that happens to Traefik itself (startup, configuration, events, shutdown, and so on). general: - # 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. level: ERROR + # -- Set the format of General Logs to be either Common Log Format or JSON. For more information: https://doc.traefik.io/traefik/observability/logs/#format + format: common access: # To enable access logs enabled: false - # By default, logs are written using the Common Log Format (CLF). - # To write logs in JSON, use json in the format option. - # If the given format is unsupported, the default (CLF) is used instead. - # format: json # To write the logs in an asynchronous fashion, specify a bufferingSize option. # This option represents the number of log lines Traefik will keep in memory before writing # them to the selected output. In some cases, this option can greatly help performances. @@ -93,6 +88,8 @@ logs: # User-Agent: redact # Authorization: drop # Content-Type: keep + # -- Set the format of Access Logs to be either Common Log Format or JSON. For more information: https://doc.traefik.io/traefik/observability/access-logs/#format + format: common metrics: # datadog: