2018-03-13 11:00:05 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: coredns{{ coredns_ordinal_suffix | default('') }}
|
2018-03-30 11:29:13 +00:00
|
|
|
namespace: kube-system
|
2018-03-13 11:00:05 +00:00
|
|
|
labels:
|
|
|
|
k8s-app: coredns{{ coredns_ordinal_suffix | default('') }}
|
|
|
|
kubernetes.io/cluster-service: "true"
|
2018-10-11 07:12:58 +00:00
|
|
|
kubernetes.io/name: "coredns{{ coredns_ordinal_suffix | default('') }}"
|
2018-09-11 17:07:25 +00:00
|
|
|
annotations:
|
|
|
|
prometheus.io/path: /metrics
|
|
|
|
prometheus.io/port: "9153"
|
|
|
|
prometheus.io/scrape: "true"
|
2018-03-13 11:00:05 +00:00
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
k8s-app: coredns{{ coredns_ordinal_suffix | default('') }}
|
|
|
|
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
|