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

Minikube cannot start #19732

Open
kivanc57 opened this issue Sep 29, 2024 · 4 comments
Open

Minikube cannot start #19732

kivanc57 opened this issue Sep 29, 2024 · 4 comments
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@kivanc57
Copy link

What Happened?

This log happens whenever I try to start minikube

Attach the log file

🤦 Unable to restart control-plane node(s), will reset cluster:
▪ Generating certificates and keys ...
▪ Booting up control plane ...
▪ Configuring RBAC rules ...
🔗 Configuring bridge CNI (Container Networking Interface) ...
E0929 21:21:53.838575 23443 kubeadm.go:265] unable to create cluster role binding for primary control-plane node, some addons might not work: apply sa: sudo /var/lib/minikube/binaries/v1.31.0/kubectl create clusterrolebinding minikube-rbac --clusterrole=cluster-admin --serviceaccount=kube-system:default --kubeconfig=/var/lib/minikube/kubeconfig: Process exited with status 1
stdout:

stderr:
error: failed to create clusterrolebinding: clusterrolebindings.rbac.authorization.k8s.io "minikube-rbac" already exists

❌ Exiting due to GUEST_START: failed to start node: Failed kubeconfig update: writing kubeconfig: Error creating directory: /var/lib/minikube: mkdir /var/lib/minikube: permission denied

Operating System

Ubuntu

Driver

VirtualBox

@kundan2707
Copy link
Contributor

/kind support

@k8s-ci-robot k8s-ci-robot added the kind/support Categorizes issue or PR as a support question. label Sep 30, 2024
@kundan2707
Copy link
Contributor

delete existing minikube completely with command
minikube delete --all

@spowelljr
Copy link
Member

Hi @kivanc57, it looks like your minikube cluster is malformed, as @kundan2707 recommended, try running minikube delete --all to delete all existing clusters, then try starting minikube again.

@kivanc57
Copy link
Author

I do that and it works but the problem is it repeats itself quite often when I work with kubectl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

4 participants