apiVersion: v1
kind: Service

metadata:
  name: bind2
  annotations:
    prometheus.io/scrape: "true"
    prometheus.io/port: "9119"
    parrot.sap.cc/announce: 'true'

spec:
  selector:
    app: bind2
  ports: 
    - name: dns-tcp
      protocol: TCP
      port: 53
      targetPort: dns-tcp
    - name: dns-udp
      protocol: UDP
      port: 53
      targetPort: dns-udp
    - name: rndc-tcp
      protocol: TCP
      port: 953
      targetPort: rndc-tcp
  externalIPs: ["{{.Values.externalIP}}"]
