Skip to content

Commit

Permalink
Merge pull request #3528 from tstromberg/minikube-try-even-longer
Browse files Browse the repository at this point in the history
apiserver health: try up to 5 minutes, add newline
  • Loading branch information
tstromberg authored Jan 14, 2019
2 parents bc638be + 3223e04 commit 32835b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/minikube/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,15 +371,17 @@ func runStart(cmd *cobra.Command, args []string) {
st, err := k8sBootstrapper.GetApiServerStatus(net.ParseIP(ip))
if err != nil || st != state.Running.String() {
fmt.Print(".")
return &pkgutil.RetriableError{Err: fmt.Errorf("apiserver unhealthy: %v: %s", err, st)}
return &pkgutil.RetriableError{Err: fmt.Errorf("apiserver status=%s err=%v", st, err)}
}
return nil
}
err = pkgutil.RetryAfter(20, aStat, 3*time.Second)

err = pkgutil.RetryAfter(30, aStat, 10*time.Second)
if err != nil {
fmt.Printf("error: %v", err)
cmdutil.MaybeReportErrorAndExit(err)
}
fmt.Println()

// start 9p server mount
if viper.GetBool(createMount) {
Expand Down

0 comments on commit 32835b9

Please sign in to comment.