apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: prometheus-daemonset
spec:
  selector:
    matchLabels:
      tier: monitoring
      name: prometheus-exporter
  template:
    metadata:
      labels:
        tier: monitoring
        name: prometheus-exporter
    spec:
      initContainers:
      - name: init-1
        image: busybox:1.33.0
        command: ['sh', '-c', 'echo Init Container executing!']
      containers:
      - name: prometheus
        image: prom/node-exporter
        ports:
        - containerPort: 80
