Open esara opened 9 months ago
Thank you very much! We will explain this in our documentation.
I think we can improve this as you mentioned. We need a location to store the pinned eBPF maps, but we make our own file system that's eBPF based, so technically it doesn't have to be in /var/run/...
related #1144
Unprivileged example (and the Helm chart privileged: false
option) are already using emptyDir instead of root file system:
https://github.com/grafana/beyla/blob/2f9cf727494d3a449d6e9b79e21ac6f556c16abc/examples/k8s/unprivileged.yaml#L179-L181
Therefore they can run with readOnlyRootFilesystem: true
. Maybe this can be closed?
following k8s security best practices - for example https://cloud.google.com/architecture/best-practices-for-building-containers#file_system_security - if you run beyla with
you get
As a potential solution, we can mount an emptydir in the example - happy to create a pr for the docs