Mount host /proc and /sys for eBPF kernel symbol access

pyroscope.ebpf needs /proc/kallsyms and tracefs access for eBPF
profiling. Mount host /proc and /sys into the container.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-03-26 15:26:20 -07:00
commit a4b5a8d917

View file

@ -46,6 +46,12 @@ spec:
mountPath: /var/lib/alloy/data
- name: tmp
mountPath: /tmp
- name: host-proc
mountPath: /host/proc
readOnly: true
- name: host-sys
mountPath: /host/sys
readOnly: true
securityContext:
privileged: true
tolerations:
@ -58,3 +64,9 @@ spec:
emptyDir: {}
- name: tmp
emptyDir: {}
- name: host-proc
hostPath:
path: /proc
- name: host-sys
hostPath:
path: /sys