apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  labels:
    k8s-app: kube-dns
  name: kube-dns
  namespace: monitoring
spec:
  endpoints:
  - bearerTokenSecret:
      name: prometheus-token
      key: token
    interval: 10s
    targetPort: 10054
  jobLabel: k8s-app
  namespaceSelector:
    matchNames:
    - kube-system
  selector:
    matchLabels:
      k8s-app: kube-dns
