github.com/grafana/pyroscope@v1.18.0/examples/grafana-alloy-auto-instrumentation/ebpf-otel/kubernetes/profiler.yaml (about) 1 apiVersion: apps/v1 2 kind: DaemonSet 3 metadata: 4 name: ebpf-profiler 5 spec: 6 selector: 7 matchLabels: 8 app: ebpf-profiler 9 template: 10 metadata: 11 labels: 12 app: ebpf-profiler 13 spec: 14 hostPID: true 15 initContainers: 16 - name: wait-for-collector 17 image: busybox 18 command: [ 'sh', '-c', 'echo "Waiting 15s for collector to be ready..." && sleep 15' ] 19 containers: 20 - name: profiler 21 image: test-ebpf-profiler:latest 22 command: ["/usr/local/bin/ebpf-profiler", "-collection-agent", "otel-collector-service:4317", "-no-kernel-version-check", "-disable-tls", "-v"] 23 imagePullPolicy: Never # Use local image 24 securityContext: 25 privileged: true 26 volumeMounts: 27 - name: kernel-debug 28 mountPath: /sys/kernel/debug 29 - name: proc 30 mountPath: /proc 31 - name: cgroup 32 mountPath: /sys/fs/cgroup 33 volumes: 34 - name: kernel-debug 35 hostPath: 36 path: /sys/kernel/debug 37 - name: proc 38 hostPath: 39 path: /proc 40 - name: cgroup 41 hostPath: 42 path: /sys/fs/cgroup