Wait up to 3 minutes for the apiserver to become healthy

pull/4372/head
tstromberg 2019-05-29 11:54:45 -07:00
parent 25b4555d90
commit 3a63a512db
1 changed files with 1 additions and 1 deletions

View File

@ -379,7 +379,7 @@ func (k *Bootstrapper) RestartCluster(k8s config.KubernetesConfig) error {
// waitForAPIServer waits for the apiserver to start up
func (k *Bootstrapper) waitForAPIServer(k8s config.KubernetesConfig) error {
glog.Infof("Waiting for apiserver ...")
return wait.PollImmediate(time.Millisecond*200, time.Minute*1, func() (bool, error) {
return wait.PollImmediate(time.Millisecond*300, time.Minute*3, func() (bool, error) {
status, err := k.GetAPIServerStatus(net.ParseIP(k8s.NodeIP), k8s.NodePort)
glog.Infof("status: %s, err: %v", status, err)
if err != nil {