fix: remove service.cf.internal from DNS search
Since CF always use explicit domains, adding service.cf.internal can
only confuse the domain name resolution. In fact, it broke one of the
KubeCF installations on a bare-metal 1.17.4 k8s cluster.
@@ -23,7 +23,6 @@ import (
)
const (
- cfDomain = "service.cf.internal"
appName = "bosh-dns"
)
@@ -135,7 +134,6 @@ func (dns *boshDomainNameService) DNSSetting(namespace string) (corev1.DNSPolicy
fmt.Sprintf("%s.svc.%s", namespace, clusterDomain),
fmt.Sprintf("svc.%s", clusterDomain),
clusterDomain,
- cfDomain,
},
Options: []corev1.PodDNSConfigOption{{Name: "ndots", Value: &ndots}},
}, nil
