Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (23 sloc) 585 Bytes
apiVersion: v1
kind: Service
metadata:
annotations:
# TODO: Check whether AWS/Azure can use internal load balancers. Google
# can't, unfortunately.
# service.beta.kubernetes.io/aws-load-balancer-internal: "true"
# service.beta.kubernetes.io/azure-load-balancer-internal: "true"
# cloud.google.com/load-balancer-type: "Internal"
labels:
k8s-app: kube-dns
name: kube-dns-lb
namespace: kube-system
spec:
ports:
- name: dns
port: 53
protocol: UDP
targetPort: 53
selector:
k8s-app: kube-dns
sessionAffinity: None
type: LoadBalancer