-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Re-initalize failed Kubernetes clusters #7234
Re-initalize failed Kubernetes clusters #7234
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tstromberg The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/ok-to-test |
Error: running mkcmp: exit status 1 |
/ok-to-test |
@@ -504,11 +529,32 @@ func (k *Bootstrapper) DeleteCluster(k8s config.KubernetesConfig) error { | |||
cmd = fmt.Sprintf("%s reset", bsutil.InvokeKubeadm(k8s.KubernetesVersion)) | |||
} | |||
|
|||
if rr, err := k.c.RunCmd(exec.Command("/bin/bash", "-c", cmd)); err != nil { | |||
return errors.Wrapf(err, "kubeadm reset: cmd: %q", rr.Command()) | |||
rr, derr := k.c.RunCmd(exec.Command("/bin/bash", "-c", cmd)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code seems similar to Kic and None Driver Stop()... I wonder if we could get rid of those (not sure) since we have it here.
given if minikube stop calls delete cluster....we could get rid of those?
for this PR, we still see the bind problems:
|
Correct, this does not prevent the error from happening, it only provides recovery from that error. There isn't enough detail available to show why the dashboard failed to deploy. |
If we fail to bring-up a Kubernetes cluster, this PR will reset it and bring it up again.
This helps primarily for two cases:
none
driver initialization where untracked Kubernetes pods are running from a previous install.Fixes #6425 and #6312 and numerous other errors which resemble: