-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruntimeAgent.yaml
More file actions
120 lines (120 loc) · 2.72 KB
/
runtimeAgent.yaml
File metadata and controls
120 lines (120 loc) · 2.72 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
apiVersion: v1
kind: Namespace
metadata:
name: monitor
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: ebpf-monitor-sa
namespace: monitor
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: pod-reader-role
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: ebpf-monitor-binding
subjects:
- kind: ServiceAccount
name: ebpf-monitor-sa
namespace: monitor
roleRef:
kind: ClusterRole
name: pod-reader-role
apiGroup: rbac.authorization.k8s.io
---
apiVersion: v1
kind: ConfigMap
metadata:
name: chambit-agent-config
namespace: monitor
data:
KAFKA_BROKERS: "192.168.200.178:9092"
KAFKA_TOPIC: "chambit-ebpf-events"
CLUSTER_NAME: "proxmox-k8s"
KAFKA_BATCH_SIZE: "100"
KAFKA_BATCH_TIMEOUT_MS: "1000"
KAFKA_WRITE_TIMEOUT_MS: "5000"
ENABLE_OPEN_EVENTS: "false"
ENABLE_READ_EVENTS: "false"
ENABLE_WRITE_EVENTS: "false"
LOG_EACH_EVENT: "false"
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: chambit-innodeagent
namespace: monitor
spec:
selector:
matchLabels:
app: chambit-innodeagent
template:
metadata:
labels:
app: chambit-innodeagent
spec:
serviceAccountName: ebpf-monitor-sa
hostPID: true
nodeSelector:
kubernetes.io/os: linux
kubernetes.io/arch: amd64
tolerations:
- key: node-role.kubernetes.io/control-plane
operator: Exists
effect: NoSchedule
- key: node-role.kubernetes.io/master
operator: Exists
effect: NoSchedule
containers:
- name: chambit-innodeagent
image: ghcr.io/chambittrace/core:v1.0.4
imagePullPolicy: IfNotPresent
envFrom:
- configMapRef:
name: chambit-agent-config
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: NODE_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
securityContext:
privileged: true
capabilities:
add: ["SYS_ADMIN", "SYS_RESOURCE"]
volumeMounts:
- name: proc
mountPath: /proc
readOnly: true
- name: bpf
mountPath: /sys/fs/bpf
- name: modules
mountPath: /lib/modules
readOnly: true
- name: debugfs
mountPath: /sys/kernel/debug
volumes:
- name: proc
hostPath:
path: /proc
- name: bpf
hostPath:
path: /sys/fs/bpf
- name: modules
hostPath:
path: /lib/modules
- name: debugfs
hostPath:
path: /sys/kernel/debug