Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apiserver health: try up to 5 minutes, add newline #3528

Merged
merged 1 commit into from
Jan 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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