-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathnode-exporter-daemonset.yaml
55 lines (55 loc) · 1.47 KB
/
node-exporter-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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: node-exporter
namespace: monitoring
labels:
app: node-exporter
kubernetes.io/cluster-service: "true"
addonmanager.kubernetes.io/mode: Reconcile
spec:
selector:
matchLabels:
app: node-exporter
updateStrategy:
type: OnDelete
template:
metadata:
labels:
tier: management
component: monitoring
app: node-exporter
spec:
containers:
- name: prometheus-node-exporter
image: prom/node-exporter:v1.8.2
imagePullPolicy: Always
args:
- --path.procfs=/proc
- --path.sysfs=/sys
ports:
- name: metrics
containerPort: 9100
hostPort: 9100
livenessProbe:
tcpSocket:
port: 9100
readinessProbe:
tcpSocket:
port: 9100
volumeMounts:
- name: node-exporter-persistent-storage-proc
mountPath: /host/proc
readOnly: true
- name: node-exporter-persistent-storage-sys
mountPath: /host/sys
readOnly: true
hostNetwork: true
hostPID: true
volumes:
- name: node-exporter-persistent-storage-proc
persistentVolumeClaim:
claimName: node-exporter-pvc-proc
- name: node-exporter-persistent-storage-sys
persistentVolumeClaim:
claimName: node-exporter-pvc-sys