-
Notifications
You must be signed in to change notification settings - Fork 5
/
daemonset.yaml
84 lines (84 loc) · 1.79 KB
/
daemonset.yaml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
apiVersion: v1
kind: Namespace
metadata:
name: bpf-stuff
---
apiVersion: v1
kind: Service
metadata:
name: bpf-program
namespace: bpf-stuff
labels:
app: bpf-program
spec:
ports:
- port: 8080
name: metrics
clusterIP: None
selector:
app: bpf-program
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: bpf-program
namespace: bpf-stuff
labels:
app: bpf-program
spec:
selector:
matchLabels:
name: bpf-program
template:
metadata:
labels:
name: bpf-program
spec:
containers:
- name: bpf-program
image: docker.io/bpftools/prometheus-ebpf-example:latest
imagePullPolicy: Always
env:
- name: MY_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: URETPROBE_BINARY
value: /host/usr/bin/bash
ports:
- containerPort: 8080
securityContext:
privileged: true
resources:
limits:
memory: 200Mi
requests:
cpu: 100m
memory: 200Mi
volumeMounts:
- name: sys
mountPath: /sys
readOnly: true
- name: headers
mountPath: /usr/src
readOnly: true
- name: modules
mountPath: /lib/modules
readOnly: true
- name: bin
mountPath: /host/usr/bin
readOnly: true
volumes:
- name: sys
hostPath:
path: /sys
- name: headers
hostPath:
path: /usr/src
- name: modules
hostPath:
path: /lib/modules
- name: bin
hostPath:
path: /usr/bin