kubespray/roles/kubernetes-apps/ansible/templates/kubedns-svc.yml.j2

23 lines
427 B
Plaintext
Raw Normal View History

---
2016-09-02 01:01:15 +08:00
apiVersion: v1
kind: Service
metadata:
name: kube-dns
namespace: {{ system_namespace }}
2016-09-02 01:01:15 +08:00
labels:
k8s-app: kube-dns
2016-09-02 01:01:15 +08:00
kubernetes.io/cluster-service: "true"
addonmanager.kubernetes.io/mode: Reconcile
kubernetes.io/name: "KubeDNS"
2016-09-02 01:01:15 +08:00
spec:
selector:
k8s-app: kube-dns
2016-09-02 01:01:15 +08:00
clusterIP: {{ skydns_server }}
ports:
- name: dns
port: 53
protocol: UDP
- name: dns-tcp
port: 53
protocol: TCP