2018-03-13 11:00:05 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
2019-03-26 18:09:17 +00:00
|
|
|
name: coredns{{ coredns_ordinal_suffix }}
|
2018-03-30 11:29:13 +00:00
|
|
|
namespace: kube-system
|
2018-03-13 11:00:05 +00:00
|
|
|
labels:
|
2019-04-10 11:12:13 +00:00
|
|
|
k8s-app: kube-dns{{ coredns_ordinal_suffix }}
|
2019-03-26 18:09:17 +00:00
|
|
|
kubernetes.io/name: "coredns{{ coredns_ordinal_suffix }}"
|
2018-11-15 17:52:12 +00:00
|
|
|
addonmanager.kubernetes.io/mode: Reconcile
|
2018-09-11 17:07:25 +00:00
|
|
|
annotations:
|
|
|
|
prometheus.io/port: "9153"
|
|
|
|
prometheus.io/scrape: "true"
|
2022-02-21 10:48:11 +00:00
|
|
|
createdby: 'kubespray'
|
2018-03-13 11:00:05 +00:00
|
|
|
spec:
|
|
|
|
selector:
|
2019-04-10 11:12:13 +00:00
|
|
|
k8s-app: kube-dns{{ coredns_ordinal_suffix }}
|
2018-03-13 11:00:05 +00:00
|
|
|
clusterIP: {{ clusterIP }}
|
|
|
|
ports:
|
2018-09-11 17:07:25 +00:00
|
|
|
- name: dns
|
|
|
|
port: 53
|
|
|
|
protocol: UDP
|
|
|
|
- name: dns-tcp
|
|
|
|
port: 53
|
|
|
|
protocol: TCP
|
|
|
|
- name: metrics
|
|
|
|
port: 9153
|
|
|
|
protocol: TCP
|