kubespray/roles/dnsmasq/templates/dnsmasq-svc.yml

24 lines
416 B
YAML
Raw Normal View History

2016-03-18 22:07:33 +08:00
---
apiVersion: v1
kind: Service
metadata:
labels:
kubernetes.io/cluster-service: 'true'
k8s-app: dnsmasq
name: dnsmasq
namespace: {{system_namespace}}
2016-03-18 22:07:33 +08:00
spec:
ports:
- port: 53
name: dns-tcp
targetPort: 53
protocol: TCP
- port: 53
name: dns
targetPort: 53
protocol: UDP
type: ClusterIP
clusterIP: {{dnsmasq_dns_server}}
2016-03-18 22:07:33 +08:00
selector:
k8s-app: dnsmasq