2018-03-13 19:00:05 +08:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
2019-03-27 02:09:17 +08:00
|
|
|
name: coredns{{ coredns_ordinal_suffix }}
|
2018-03-30 19:29:13 +08:00
|
|
|
namespace: kube-system
|
2018-03-13 19:00:05 +08:00
|
|
|
labels:
|
2019-03-27 02:09:17 +08:00
|
|
|
k8s-app: coredns{{ coredns_ordinal_suffix }}
|
2018-03-13 19:00:05 +08:00
|
|
|
kubernetes.io/cluster-service: "true"
|
2019-03-27 02:09:17 +08:00
|
|
|
kubernetes.io/name: "coredns{{ coredns_ordinal_suffix }}"
|
2018-11-16 01:52:12 +08:00
|
|
|
addonmanager.kubernetes.io/mode: Reconcile
|
2018-09-12 01:07:25 +08:00
|
|
|
annotations:
|
|
|
|
prometheus.io/path: /metrics
|
|
|
|
prometheus.io/port: "9153"
|
|
|
|
prometheus.io/scrape: "true"
|
2018-03-13 19:00:05 +08:00
|
|
|
spec:
|
|
|
|
selector:
|
2019-03-27 02:09:17 +08:00
|
|
|
k8s-app: coredns{{ coredns_ordinal_suffix }}
|
2018-03-13 19:00:05 +08:00
|
|
|
clusterIP: {{ clusterIP }}
|
|
|
|
ports:
|
2018-09-12 01:07:25 +08:00
|
|
|
- name: dns
|
|
|
|
port: 53
|
|
|
|
protocol: UDP
|
|
|
|
- name: dns-tcp
|
|
|
|
port: 53
|
|
|
|
protocol: TCP
|
|
|
|
- name: metrics
|
|
|
|
port: 9153
|
|
|
|
protocol: TCP
|