2024-11-11 18:03:28 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: DaemonSet
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/component: exporter
|
|
|
|
app.kubernetes.io/name: node-exporter
|
|
|
|
name: node-exporter
|
|
|
|
namespace: monitoring
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/component: exporter
|
|
|
|
app.kubernetes.io/name: node-exporter
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/component: exporter
|
|
|
|
app.kubernetes.io/name: node-exporter
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- args:
|
|
|
|
- --path.sysfs=/host/sys
|
|
|
|
- --path.rootfs=/host/root
|
|
|
|
- --no-collector.wifi
|
2024-12-05 21:26:53 +00:00
|
|
|
- --collector.filesystem.ignored-mount-points=^/(dev|proc|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)
|
2024-11-11 18:03:28 +00:00
|
|
|
- --collector.netclass.ignored-devices=^(veth.*)$
|
|
|
|
name: node-exporter
|
|
|
|
image: prom/node-exporter
|
|
|
|
ports:
|
|
|
|
- containerPort: 9100
|
|
|
|
protocol: TCP
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 250m
|
|
|
|
memory: 180Mi
|
|
|
|
requests:
|
|
|
|
cpu: 102m
|
|
|
|
memory: 180Mi
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /host/sys
|
|
|
|
mountPropagation: HostToContainer
|
|
|
|
name: sys
|
|
|
|
readOnly: true
|
|
|
|
- mountPath: /host/root
|
|
|
|
mountPropagation: HostToContainer
|
|
|
|
name: root
|
|
|
|
readOnly: true
|
2024-11-11 20:27:34 +00:00
|
|
|
tolerations:
|
|
|
|
- key: type
|
|
|
|
operator: Equal
|
|
|
|
value: services
|
|
|
|
effect: NoSchedule
|
2024-11-11 18:03:28 +00:00
|
|
|
volumes:
|
|
|
|
- hostPath:
|
|
|
|
path: /sys
|
|
|
|
name: sys
|
|
|
|
- hostPath:
|
|
|
|
path: /
|
|
|
|
name: root
|