forked from postmanlabs/kubernetes-chaos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
node-exporter.yaml
45 lines (45 loc) · 1.07 KB
/
node-exporter.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
kind: DaemonSet
apiVersion: extensions/v1beta1
metadata:
name: node-exporter
namespace: monitoring
spec:
selector:
matchLabels:
daemon: node-exporter
grafanak8sapp: "true"
template:
metadata:
name: node-exporter
labels:
daemon: node-exporter
grafanak8sapp: "true"
spec:
volumes:
- name: proc
hostPath:
path: /proc
- name: sys
hostPath:
path: /sys
containers:
- name: node-exporter
image: quay.io/prometheus/node-exporter:v0.15.0
args:
- --path.procfs=/proc_host
- --path.sysfs=/host_sys
ports:
- name: node-exporter
hostPort: 9100
containerPort: 9100
volumeMounts:
- name: sys
readOnly: true
mountPath: /host_sys
- name: proc
readOnly: true
mountPath: /proc_host
imagePullPolicy: IfNotPresent
restartPolicy: Always
hostNetwork: true
hostPID: true