-
Notifications
You must be signed in to change notification settings - Fork 9
/
omni-install.yaml
62 lines (58 loc) · 1.22 KB
/
omni-install.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
kind: Namespace
apiVersion: v1
metadata:
name: omni-system
---
kind: ConfigMap
apiVersion: v1
metadata:
name: omni-config
namespace: omni-system
data:
OMNI_INFLUX_URL: "<your-url-here>"
OMNI_INFLUX_TOKEN: "<your-token-here>"
OMNI_INFLUX_BUCKET: "<your-bucket-here>"
OMNI_INFLUX_ORG: "<your-organization-here>"
OMNI_DATA_RATE_SECONDS: "5"
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: omni-metrics
namespace: omni-system
spec:
selector:
matchLabels:
app: omni-monitor
template:
metadata:
labels:
app: omni-monitor
spec:
volumes:
- name: rootfs
hostPath:
path: /proc
containers:
- name: omni
image: mattogodoy/omni:arm
imagePullPolicy: Always
envFrom:
- configMapRef:
name: omni-config
env:
- name: OMNI_HOST_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: OMNI_HOST_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
volumeMounts:
- name: rootfs
mountPath: /rootfs/proc
readOnly: true
tolerations:
- effect: NoSchedule
operator: Exists