Skip to content

Commit

Permalink
Merge pull request #4372 from tstromberg/apiserver-wait
Browse files Browse the repository at this point in the history
Increase apiserver wait time from 1 minute to 3 minutes
  • Loading branch information
tstromberg authored May 30, 2019
2 parents 5a2eaf8 + 9c996a7 commit 722f501
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/minikube/bootstrapper/kubeadm/kubeadm.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,9 @@ 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)
glog.Infof("apiserver status: %s, err: %v", status, err)
if err != nil {
return false, err
}
Expand Down

0 comments on commit 722f501

Please sign in to comment.