c12s-kubespray/roles/kubernetes/federation/templates/coredns-svc.yml.j2
Matthew Mosesohn cff4c5db4a Add federation support
Includes CoreDNS with etcd pod for its backend.
2017-03-20 19:42:59 +03:00

20 lines
374 B
Django/Jinja

apiVersion: v1
kind: Service
metadata:
name: coredns
namespace: {{ system_namespace }}
labels:
k8s-app: coredns
kubernetes.io/cluster-service: "true"
kubernetes.io/name: "coredns"
spec:
selector:
k8s-app: coredns
clusterIP: {{ coredns_server }}
ports:
- name: dns
port: 53
protocol: UDP
- name: dns-tcp
port: 53
protocol: TCP