We are using K3S with traefik ingress and would like the access logs persisted to a hostPath volume
In the HelmChartConfig resource we have:
logs: access: enabled: true volumes: - hostPath: path: /var/log/somewhere/traefik/ name: traefik-logs type: DirectoryOrCreate mountPath: /var/log/traefik/
Expected: The logs are written to the host path
Result: No logs are written to the host. Logs are only visible via
kubectl logs pod
Apparently traefik is logging to stdout only, can we change this?
Also, it seems the helm chart mounts all volumes as readOnly link so maybe we are going about this the wrong way.