The nix-built Alloy image sets User=65534 (nobody). Even with privileged: true, a non-root user gets no effective capabilities (CapEff=0). Override with runAsUser: 0 so Beyla gets CAP_BPF and CAP_SYS_ADMIN needed for eBPF instrumentation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
57 lines
1.4 KiB
YAML
57 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: alloy-tracing
|
|
namespace: alloy
|
|
labels:
|
|
app: alloy-tracing
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: alloy-tracing
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: alloy-tracing
|
|
spec:
|
|
serviceAccountName: alloy-tracing
|
|
hostPID: true
|
|
containers:
|
|
- name: alloy
|
|
image: registry.ops.eblu.me/blumeops/alloy:kustomized
|
|
args:
|
|
- run
|
|
- --server.http.listen-addr=0.0.0.0:12346
|
|
- --storage.path=/var/lib/alloy/data
|
|
- /etc/alloy/config.alloy
|
|
ports:
|
|
- containerPort: 12346
|
|
name: http
|
|
env:
|
|
- name: HOSTNAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: spec.nodeName
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: "1"
|
|
memory: 1Gi
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /etc/alloy
|
|
- name: data
|
|
mountPath: /var/lib/alloy/data
|
|
securityContext:
|
|
privileged: true
|
|
runAsUser: 0
|
|
tolerations:
|
|
- operator: Exists
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: alloy-tracing-config
|
|
- name: data
|
|
emptyDir: {}
|