apiVersion: apps/v1
kind: DaemonSet
metadata:
  #namespace: monitoring
  name: node-exporter
spec:
  selector:
    matchLabels:
      app: node-exporter
  template:
    metadata:
      name:  node-exporter
      labels:
        app: node-exporter
      annotations:
         prometheus.io/scrape: "true"
         prometheus.io/port: "9100"
    spec:
      containers:
      - name:  prom-node-exporter
        image: prom/node-exporter
        securityContext:
          privileged: true
        ports:
        - containerPort: 9100
      hostPID: true
      hostNetwork: true
