Fix the DNS addon bind address

parent efe3f13f
......@@ -57,7 +57,7 @@ func EnsureDNSAddon(cfg *kubeadmapi.MasterConfiguration, client clientset.Interf
}
var dnsBindAddr string
if dnsip.To16() != nil {
if dnsip.To4() == nil {
dnsBindAddr = "::1"
} else {
dnsBindAddr = "127.0.0.1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment