Hi all, I am trying to deploy CrowdSec to my K3s cluster that runs Traefik as the ingress controller. I managed to get everything running (lapi and agents), but no signals showed up in the console. After some log reading, I found out that the issue is:
2026-02-20T16:06:09.895123817Z time="2026-02-20T16:06:09Z" level=error msg="Could not create watch on directory /var/log/containers : permission denied" module=acquisition.file type=file
I tried a LOT of things, including mounting the /var/log/containers directory myself, even tried using a /var/log/pods hostPath with a custom file acquisition to /var/log/pods/traefik_traefik-*/traefik/*.log. That did find the logfile still, but also could not create the watch. I tried with and without inotify, but nothing seemed to help. In the Helm chart there is no option to setting the fsGroup or fsUser (securityContext), that might theoretically be the issue, but before trying to create a custom DaemonSet and skipping Helm, I wanted to check-in here.
Current values.yaml for 0.22.0 of the Helm chart:
container_runtime: containerd
agent:
acquisition:
- namespace: traefik
podName: traefik-*
program: traefik
env:
- name: COLLECTIONS
value: "crowdsecurity/traefik"
... lapi / config stuff ...
Any help would be greatly appreciated.