apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: monitor-coredns-daemonset
  namespace: metrics-debug
  labels:
    app: monitor-coredns-daemonset
spec:
  selector:
    matchLabels:
      app: monitor-coredns-daemonset
  template:
    metadata:
      labels:
        app: monitor-coredns-daemonset
    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
      #  effect: NoSchedule
      hostPID: true
      hostIPC: true
      hostNetwork: true
      containers:
      - name: monitor-coredns-daemonset
        image: quay.io/support-tools/monitor-coredns:latest
        imagePullPolicy: IfNotPresent
        securityContext:
          runAsUser: 0
          runAsGroup: 0
          privileged: true
