.:53 {
    errors
    health {
        lameduck 5s
    }
    ready

    template IN A test.local {
        answer "{{ .Name }} 60 IN CNAME haproxy-kubernetes-ingress.haproxy-controller.svc.cluster.local."
    }

    template IN A test.example {
        answer "{{ .Name }} 60 IN CNAME haproxy-kubernetes-ingress.haproxy-controller.svc.cluster.local."
    }

    template IN A test {
        answer "{{ .Name }} 60 IN CNAME haproxy-kubernetes-ingress.haproxy-controller.svc.cluster.local."
    }

    kubernetes cluster.local in-addr.arpa ip6.arpa {
        pods insecure
        fallthrough in-addr.arpa ip6.arpa
        ttl 30
    }
    prometheus :9153
    forward . /etc/resolv.conf
    cache 30
    loop
    reload
    loadbalance
}
