kind: Service
apiVersion: v1
metadata:
  name: coredns-coredns
  namespace: kube-system
  labels:
    app.kubernetes.io/instance: coredns
    app.kubernetes.io/name: coredns
    k8s-app: coredns
    kubernetes.io/cluster-service: 'true'
    kubernetes.io/name: CoreDNS
  annotations:
    prometheus.io/port: '9153'
    prometheus.io/scrape: 'true'
spec:
  ports:
  - name: udp-53
    protocol: UDP
    port: 53
    targetPort: 53
  - name: tcp-53
    protocol: TCP
    port: 53
    targetPort: 53
  selector:
    app.kubernetes.io/instance: coredns
    app.kubernetes.io/name: coredns
    k8s-app: coredns
  clusterIP: 10.245.0.10
  type: ClusterIP
  sessionAffinity: None
