apiVersion: v1
kind: Service
metadata:
  annotations:
    external-dns.alpha.kubernetes.io/hostname: dns.kochhaus.net
    metallb.universe.tf/allow-shared-ip: dns
  labels:
    app.kubernetes.io/instance: home-dns
    app.kubernetes.io/name: coredns
    k8s-app: coredns
    kubernetes.io/name: CoreDNS
  name: home-dns-tcp
  namespace: home-dns
spec:
  allocateLoadBalancerNodePorts: true
  externalTrafficPolicy: Cluster
  internalTrafficPolicy: Cluster
  ipFamilies:
    - IPv4
  ipFamilyPolicy: SingleStack
  loadBalancerIP: ${LB_HOME_DNS}
  ports:
    - name: tcp-53
      port: 53
      protocol: TCP
      targetPort: 53
  selector:
    app.kubernetes.io/instance: home-dns
    app.kubernetes.io/name: coredns
    k8s-app: coredns
  sessionAffinity: None
  type: LoadBalancer
