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