https://rancher.com/ logo
Title
a

ancient-tomato-94095

03/31/2023, 12:29 PM
Hi. How can I configure the traefik logs on k3s ? I created a file /var/lib/rancher/k3s/server/manifests/traefik-config.yaml with the content :
apiVersion: <http://helm.cattle.io/v1|helm.cattle.io/v1>
kind: HelmChartConfig metadata: name: traefik namespace: kube-system spec: log: filePath: "/var/log/traefik/traefik.log" level: DEBUG
c

curved-army-69172

03/31/2023, 1:21 PM
This seems to work for me regarding setting the level, probably file path works similar:
apiVersion: <http://helm.cattle.io/v1|helm.cattle.io/v1>
kind: HelmChartConfig
metadata:
  name: traefik
  namespace: kube-system
spec:
  valuesContent: |-
    additionalArguments:
      - "--log.level=DEBUG"