service.yaml 543 B

123456789101112131415161718192021222324252627
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. annotations:
  5. prometheus.io/port: '10055'
  6. prometheus.io/scrape: 'true'
  7. labels:
  8. addonmanager.kubernetes.io/mode: Reconcile
  9. k8s-app: kube-dns
  10. kubernetes.io/cluster-service: 'true'
  11. kubernetes.io/name: CoreDNS
  12. name: kube-dns
  13. namespace: kube-system
  14. spec:
  15. clusterIP: '10.0.0.254'
  16. ports:
  17. - name: dns
  18. port: 53
  19. protocol: UDP
  20. targetPort: 10053
  21. - name: dns-tcp
  22. port: 53
  23. protocol: TCP
  24. targetPort: 10053
  25. selector:
  26. k8s-app: kube-dns