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
|
2018-10-16 08:24:27 +02:00
|
|
|
annotations:
|
|
|
|
seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
|
2017-10-23 02:00:41 +02:00
|
|
|
spec:
|
2018-01-28 05:56:49 +01:00
|
|
|
serviceAccountName: node-exporter
|
|
|
|
securityContext:
|
|
|
|
runAsNonRoot: true
|
|
|
|
runAsUser: 65534
|
2017-10-23 02:00:41 +02:00
|
|
|
hostNetwork: true
|
|
|
|
hostPID: true
|
|
|
|
containers:
|
|
|
|
- name: node-exporter
|
2019-01-22 09:19:55 +01:00
|
|
|
image: quay.io/prometheus/node-exporter:v0.17.0
|
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
|
|
|
|
- --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+)($|/)
|
|
|
|
- --collector.filesystem.ignored-fs-types=^(autofs|binfmt_misc|cgroup|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs)$
|
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
|
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
|
|
|
|
readOnly: true
|
2017-10-23 02:00:41 +02:00
|
|
|
tolerations:
|
2018-01-28 05:56:49 +01:00
|
|
|
- effect: NoSchedule
|
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: /
|