-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode_exporter_ds.yaml
More file actions
71 lines (71 loc) · 1.45 KB
/
Copy pathnode_exporter_ds.yaml
File metadata and controls
71 lines (71 loc) · 1.45 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
apiVersion: apps/v1
kind: DaemonSet
metadata:
namespace: monitoring
name: nodeexporter
labels:
app: nodeexporter
spec:
minReadySeconds: 2
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
selector:
matchLabels:
app: nodeexporter
template:
metadata:
name: nodeexporter
labels:
app: nodeexporter
spec:
containers:
- image: prom/node-exporter
name: node-exporter
securityContext:
privileged: true
args:
- --path.procfs=/host/proc
- --path.sysfs=/host/sys
ports:
- name: metrics
containerPort: 9100
hostPort: 9100
volumeMounts:
- name: proc
mountPath: /host/proc
readOnly: true
- name: sys
mountPath: /host/sys
readOnly: true
resources:
limits:
memory: 50Mi
requests:
cpu: 100m
memory: 50Mi
hostNetwork: true
hostPID: true
volumes:
- name: proc
hostPath:
path: /proc
- name: sys
hostPath:
path: /sys
---
apiVersion: v1
kind: Service
metadata:
namespace: monitoring
name: nodeexporter
labels:
app: nodeexporter
spec:
clusterIP: None
ports:
- port: 9100
targetPort: 9100
selector:
app: nodeexporter