mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
Avoid log wrong information until got PublicAddress
This commit is contained in:
parent
9fe755dea6
commit
b94b1efdb0
@ -408,6 +408,7 @@ func setDefaults(c *Config) {
|
||||
glog.Fatalf("Unable to find suitable network address.error='%v' . "+
|
||||
"Will try again in 5 seconds. Set the public address directly to avoid this wait.", err)
|
||||
time.Sleep(5 * time.Second)
|
||||
continue
|
||||
}
|
||||
c.PublicAddress = hostIP
|
||||
glog.Infof("Will report %v as public IP address.", c.PublicAddress)
|
||||
|
Loading…
Reference in New Issue
Block a user