2018-02-11 08:51:55 +01:00
|
|
|
apiVersion: apps/v1
|
2017-10-23 02:00:41 +02:00
|
|
|
kind: DaemonSet
|
|
|
|
metadata:
|
|
|
|
name: node-exporter
|
|
|
|
namespace: monitoring
|
|
|
|
spec:
|
|
|
|
updateStrategy:
|
|
|
|
type: RollingUpdate
|
|
|
|
rollingUpdate:
|
|
|
|
maxUnavailable: 1
|
2017-10-23 06:29:31 +02:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
name: node-exporter
|
|
|
|
phase: prod
|
2017-10-23 02:00:41 +02:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
name: node-exporter
|
|
|
|
phase: prod
|
|
|
|
spec:
|
2018-01-28 05:56:49 +01:00
|
|
|
serviceAccountName: node-exporter
|
|
|
|
securityContext:
|
|
|
|
runAsNonRoot: true
|
|
|
|
runAsUser: 65534
|
2022-08-08 18:19:46 +02:00
|
|
|
runAsGroup: 65534
|
|
|
|
fsGroup: 65534
|
2020-09-10 09:35:46 +02:00
|
|
|
seccompProfile:
|
|
|
|
type: RuntimeDefault
|
2017-10-23 02:00:41 +02:00
|
|
|
hostNetwork: true
|
|
|
|
hostPID: true
|
|
|
|
containers:
|
|
|
|
- name: node-exporter
|
2021-12-10 20:29:49 +01:00
|
|
|
image: quay.io/prometheus/node-exporter:v1.3.1
|
2017-10-23 02:00:41 +02:00
|
|
|
args:
|
2019-01-22 09:19:55 +01:00
|
|
|
- --path.procfs=/host/proc
|
|
|
|
- --path.sysfs=/host/sys
|
|
|
|
- --path.rootfs=/host/root
|
2017-10-23 02:00:41 +02:00
|
|
|
ports:
|
|
|
|
- name: metrics
|
|
|
|
containerPort: 9100
|
|
|
|
hostPort: 9100
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 50Mi
|
2019-01-22 09:19:55 +01:00
|
|
|
limits:
|
2017-10-23 02:00:41 +02:00
|
|
|
cpu: 200m
|
2019-01-22 09:19:55 +01:00
|
|
|
memory: 100Mi
|
2022-08-08 18:19:46 +02:00
|
|
|
securityContext:
|
|
|
|
seLinuxOptions:
|
|
|
|
type: spc_t
|
2017-10-23 02:00:41 +02:00
|
|
|
volumeMounts:
|
|
|
|
- name: proc
|
|
|
|
mountPath: /host/proc
|
|
|
|
readOnly: true
|
|
|
|
- name: sys
|
|
|
|
mountPath: /host/sys
|
|
|
|
readOnly: true
|
2019-01-22 09:19:55 +01:00
|
|
|
- name: root
|
|
|
|
mountPath: /host/root
|
2022-08-08 18:19:46 +02:00
|
|
|
mountPropagation: HostToContainer
|
2019-01-22 09:19:55 +01:00
|
|
|
readOnly: true
|
2017-10-23 02:00:41 +02:00
|
|
|
tolerations:
|
2022-08-08 18:19:46 +02:00
|
|
|
- key: node-role.kubernetes.io/controller
|
|
|
|
operator: Exists
|
|
|
|
- key: node-role.kubernetes.io/control-plane
|
2020-01-07 06:14:03 +01:00
|
|
|
operator: Exists
|
|
|
|
- key: node.kubernetes.io/not-ready
|
2017-10-23 02:00:41 +02:00
|
|
|
operator: Exists
|
|
|
|
volumes:
|
|
|
|
- name: proc
|
|
|
|
hostPath:
|
|
|
|
path: /proc
|
|
|
|
- name: sys
|
|
|
|
hostPath:
|
|
|
|
path: /sys
|
2019-01-22 09:19:55 +01:00
|
|
|
- name: root
|
|
|
|
hostPath:
|
|
|
|
path: /
|