c12s-kubespray/roles/kubernetes-apps/templates/kubedns-svc.yml

21 lines
362 B
YAML
Raw Normal View History

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