apiVersion: v1
kind: Service
metadata:
  name: coredns-prometheus-discovery
  namespace: kube-system
  labels:
    k8s-app: coredns
    component: metrics
spec:
  ports:
    - name: http-metrics
      port: 9153
      protocol: TCP
      targetPort: 9153
  selector:
    k8s-app: coredns
  type: ClusterIP
  clusterIP: None
