mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Fix the DNS addon bind address
This commit is contained in:
parent
efe3f13f3d
commit
cfddee4f7a
@ -57,7 +57,7 @@ func EnsureDNSAddon(cfg *kubeadmapi.MasterConfiguration, client clientset.Interf
|
|||||||
}
|
}
|
||||||
|
|
||||||
var dnsBindAddr string
|
var dnsBindAddr string
|
||||||
if dnsip.To16() != nil {
|
if dnsip.To4() == nil {
|
||||||
dnsBindAddr = "::1"
|
dnsBindAddr = "::1"
|
||||||
} else {
|
} else {
|
||||||
dnsBindAddr = "127.0.0.1"
|
dnsBindAddr = "127.0.0.1"
|
||||||
|
Loading…
Reference in New Issue
Block a user