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

none: sudo kubeadm init phase certs all --config /var/lib/kubeadm.yaml: exit status #4742

Closed
akshayr01 opened this issue Jul 12, 2019 · 7 comments
Labels
co/none-driver triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@akshayr01
Copy link

OS: RHEL 7.2
Minikube version: 1.12
Kubectl version: Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.0", GitCommit:"e8462b5b5dc2584fdcd18e6bcfe9f1e4d970a529", GitTreeState:"clean", BuildDate:"2019-06-19T16:40:16Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
VM-Driver: None (Because I'm running on AWS instance)
Exact command to replicate this:

sudo -E ./minikube start --vm-driver=none

  • minikube v1.2.0 on linux (amd64)
  • Tip: Use 'minikube start -p ' to create a new cluster, or 'minikube delete' to delete this one.
  • Restarting existing none VM for "minikube" ...
  • Waiting for SSH access ...
  • Configuring environment for Kubernetes v1.15.0 on Docker 18.09.7
  • Relaunching Kubernetes v1.15.0 using kubeadm ...

X Error restarting cluster: running cmd: sudo kubeadm init phase certs all --config /var/lib/kubeadm.yaml: running command: sudo kubeadm init phase certs all --config /var/lib/kubeadm.yaml: exit status 1

@afbjorklund
Copy link
Collaborator

Seems like there is an unclean previous installation, if you don't care about the contents of the cluster you might want to use sudo kubeadm reset (or use a new VM). Otherwise, the log from kubeadm is needed.

@akshayr01
Copy link
Author

akshayr01 commented Jul 15, 2019

How to uninstall kubectl and minikube completely ( Including configuration files) ?
Can anyone please help

@afbjorklund
Copy link
Collaborator

How to uninstall kubectl and minikube completely ( Including configuration files) ?

Answered in the other issue: #4765

Did running kubeadm reset and doing minikube start help anything for this VM ?

@akshayr01
Copy link
Author

I tried that, but it didn't work.

@afbjorklund
Copy link
Collaborator

The verbose minikube log might have some more clues. minikube -v5

@tstromberg
Copy link
Contributor

Thank you for sharing your experience! If you don't mind, could you please provide the output of:

sudo -E ./minikube start --vm-driver=none --alsologtostderr -v=5

This will help us isolate the problem further. Thank you!

@tstromberg tstromberg added the triage/needs-information Indicates an issue needs more information in order to work on it. label Jul 16, 2019
@tstromberg tstromberg changed the title Minikube can't start cluster none: sudo kubeadm init phase certs all --config /var/lib/kubeadm.yaml: exit status Jul 16, 2019
@akshayr01
Copy link
Author

The issue is resolved, I had exported some wrong file in kubeconfig, I uninstalled the kubectl and reinstalled it got resolved. Thanks for helping me out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/none-driver triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

3 participants