apiVersion: apps/v1
kind: DaemonSet
metadata:
    labels:
        app.kubernetes.io/name: node-exporter
        app.kubernetes.io/version: v0.18.1
    name: node-exporter
spec:
    selector:
        matchLabels:
            app.kubernetes.io/name: node-exporter
    template:
        metadata:
            labels:
                app.kubernetes.io/name: node-exporter
                app.kubernetes.io/version: v0.18.1
        spec:
            containers:
                -   args:
                        - --web.listen-address=127.0.0.1:9100
                        - --path.procfs=/host/proc
                        - --path.sysfs=/host/sys
                        - --path.rootfs=/host/root
                        - --no-collector.wifi
                        - --no-collector.hwmon
                        - --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)
                    image: quay.io/prometheus/node-exporter:v0.18.1
                    name: node-exporter
                    resources:
                        limits:
                            cpu: 250m
                            memory: 180Mi
                        requests:
                            cpu: 102m
                            memory: 180Mi
                    volumeMounts:
                        -   mountPath: /host/proc
                            name: proc
                            readOnly: false
                        -   mountPath: /host/sys
                            name: sys
                            readOnly: false
                        -   mountPath: /host/root
                            mountPropagation: HostToContainer
                            name: root
                            readOnly: true
            hostNetwork: true
            hostPID: true
            securityContext:
                runAsNonRoot: true
                runAsUser: 65534
            tolerations:
                -   operator: Exists
            volumes:
                -   hostPath:
                        path: /proc
                    name: proc
                -   hostPath:
                        path: /sys
                    name: sys
                -   hostPath:
                        path: /
                    name: root
