apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: prometheus-node-exporter
  labels:
    app: prometheus-node-exporter
spec:
  selector:
    matchLabels:
      app: prometheus-node-exporter
  updateStrategy:
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: prometheus-node-exporter
      name: prometheus-exporter
    spec:
      tolerations:
        # this toleration is to have the daemonset runnable on master nodes
        # remove it if your masters can't run pods
        - key: node-role.kubernetes.io/master
          operator: Exists
          effect: NoSchedule
      containers:
      - image: openshift/prometheus-node-exporter:v0.16.0
        name: node-exporter
        ports:
        - containerPort: 9100
          name: scrape
