apiVersion: apps/v1
kind: DaemonSet
metadata:
  labels:
    app: prometheus-node-exporter
    role: monitoring
  name: prometheus-node-exporter
  namespace: openshift-metrics
spec:
  selector:
    matchLabels:
      app: prometheus-node-exporter
      role: monitoring
  template:
    metadata:
      labels:
        app: prometheus-node-exporter
        role: monitoring
      name: prometheus-exporter
    spec:
      containers:
      - image: '*** GENERATED ***'
        name: node-exporter
        ports:
        - containerPort: 9100
          hostPort: 9100
          name: scrape
        resources:
          limits:
            cpu: 200m
            memory: 50Mi
          requests:
            cpu: 100m
            memory: 30Mi
        volumeMounts:
        - mountPath: /host/proc
          name: proc
          readOnly: true
        - mountPath: /host/sys
          name: sys
          readOnly: true
      hostNetwork: true
      hostPID: true
      serviceAccountName: prometheus-node-exporter
      volumes:
      - hostPath:
          path: /proc
        name: proc
      - hostPath:
          path: /sys
        name: sys
