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

20 lines
375 B
YAML

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