You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
629 B

  1. ---
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: coredns{{ coredns_ordinal_suffix }}
  6. namespace: kube-system
  7. labels:
  8. k8s-app: kube-dns{{ coredns_ordinal_suffix }}
  9. kubernetes.io/name: "coredns{{ coredns_ordinal_suffix }}"
  10. addonmanager.kubernetes.io/mode: Reconcile
  11. annotations:
  12. prometheus.io/port: "9153"
  13. prometheus.io/scrape: "true"
  14. spec:
  15. selector:
  16. k8s-app: kube-dns{{ coredns_ordinal_suffix }}
  17. clusterIP: {{ clusterIP }}
  18. ports:
  19. - name: dns
  20. port: 53
  21. protocol: UDP
  22. - name: dns-tcp
  23. port: 53
  24. protocol: TCP
  25. - name: metrics
  26. port: 9153
  27. protocol: TCP