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

node stop & start on master fails: failed to load admin kubeconfig: open /root/.kube/config: no such file or directory #9831

Closed
lingsamuel opened this issue Dec 3, 2020 · 1 comment · Fixed by #9833
Labels
co/multinode Issues related to multinode clusters priority/backlog Higher priority than priority/awaiting-more-evidence. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.

Comments

@lingsamuel
Copy link
Contributor

lingsamuel commented Dec 3, 2020

Steps to reproduce the issue:

  1. start a cluster
  2. minikube node stop the master node
  3. minikube node start it, failed:
❌  Exiting due to GUEST_NODE_START: generating join token: generating join command: /bin/bash -c "sudo env PATH=/var/lib/minikube/binaries/v1.19.3:$PATH kubeadm token create --print-join-command --ttl=0": Process exited with status 1
stdout:

stderr:
failed to load admin kubeconfig: open /root/.kube/config: no such file or directory

And try minikube node start again, got:

$ minikube node start minikube
✅  minikube is already running

To fix this, I have to use minikube stop && minikube start to restart the whole cluster.

@lingsamuel
Copy link
Contributor Author

Because node start always set apiserver=false: _, err = node.Start(s, false)

@tstromberg tstromberg changed the title minikube node stop & start master node failed minikube node stop & start master node fails: failed to load admin kubeconfig: open /root/.kube/config: no such file or directory Dec 9, 2020
@tstromberg tstromberg changed the title minikube node stop & start master node fails: failed to load admin kubeconfig: open /root/.kube/config: no such file or directory node stop & start on master fails: failed to load admin kubeconfig: open /root/.kube/config: no such file or directory Dec 9, 2020
@tstromberg tstromberg added co/multinode Issues related to multinode clusters priority/backlog Higher priority than priority/awaiting-more-evidence. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. labels Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/multinode Issues related to multinode clusters priority/backlog Higher priority than priority/awaiting-more-evidence. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants