-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy path04-agent.yml
43 lines (43 loc) · 1.07 KB
/
04-agent.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: netobserv-ebpf-agent
labels:
k8s-app: netobserv-ebpf-agent
spec:
selector:
matchLabels:
k8s-app: netobserv-ebpf-agent
template:
metadata:
labels:
k8s-app: netobserv-ebpf-agent
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: netobserv-ebpf-agent
image: localhost/ebpf-agent:test
securityContext:
privileged: true
runAsUser: 0
env:
- name: CACHE_ACTIVE_TIMEOUT
value: 200ms
- name: LOG_LEVEL
value: debug
- name: TARGET_HOST
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: TARGET_PORT
value: "9999"
volumeMounts:
- name: bpf-kernel-debug
mountPath: /sys/kernel/debug
mountPropagation: Bidirectional
volumes:
- name: bpf-kernel-debug
hostPath:
path: /sys/kernel/debug
type: Directory