Skip to content

Commit

Permalink
apiserver health: try up to 5 minutes, add newline
Browse files Browse the repository at this point in the history
  • Loading branch information
tstromberg committed Jan 11, 2019
1 parent e6b60fb commit 3223e04
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 3223e04

Please sign in to comment.