-
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
None driver error on minikube 1.11.0 #8361
Comments
Sorry you got bitten by the systemd vs the world (and juju) bug #6391, as triggered by sudo... Have you tried the "docker" driver ? There is no VM involved with that one, if that is your concern |
@afbjorklund I saw that in the issue but it is closed. Should it be a Won't fix? I just tried docker driver:
The user experience here (regarding the messages) is not so good since I just tried driver=none. It also did not work out-of-the-box without root:
|
The issue was closed because there is a workaround and upstream ticket for the library (juju/mutex) There was some discussion about the default minikube permissions and root recently: #8257 |
I also tried juju instalation of kubeadm in the past. My experience was also a bit frustrated. I will take a look on #8257. I really don't think requiring root for minikube is a big deal, since any node of kubeadm would require that. |
I'm not sure if juju-the-installer is related to the mutex library, by more than name association. Basically systemd introduced a breaking change, and this particular library failed to adapt to it. |
@afbjorklund do you have a link for this juju-mutex issue? |
But the last commit is from Jun 2018, whereas the systemd breakage is from Feb 2019 |
There also seems to be a mismatch of expectations, about what minikube is actually doing... So if all you want to do is to run locally on the master node as root, maybe minikube is overkill ? |
@afbjorklund last commit of this dependency on June 2018. I saw that a Juju member responded the issue but is waiting for response. Maybe that is why they did not fix it yet. |
I always liked minikube and what it does. And I tried to make my teams use it for running locally applications that would run on kubernetes without having to know interns of how to install kubeadm. minikube improved a lot but this none driver was always a stone in my shoe. |
@afbjorklund indeed this new |
@staticdev I also recommend the docker driver. As long as you have docker installed by your distro you should be good to go. None driver is not our recommended driver and there is warning in minikube to not use it unless it inside a ci VM, docker driver can be replaced with none driver for all use cases and it supports more features such as multi node and loadbalancer And yes we don't allow running as root for security reasons. I believe the distro's package manager will take care of the user groups ( Ubuntu takes care of it ) but if your distro doesn't do that you might need to add the user to the group I recommend checkout docker docs how to install docker in your distro |
@medyagh Nice. I am using Ubuntu 20.04 and installed it with Docker repository following their documentation. And yet, I am having the error when running the driver:
|
No, that is currently required. It is related to #7963 We default to running docker through their root group (rather than using When using KVM2, it uses a similar As discussed in that other issue, the goal here is to run minikube as the user but the driver as root. We don't want root-owned files under $HOME, but we don't support rootless kubernetes either. |
Thanks for the enlightenment @afbjorklund and @medyagh. I am happy with docker option, we can close this one. |
minikube v1.26.0 on Ubuntu 22.04 (xen/amd64)
|
please anyone solve this |
@siddubellanki please open another issue, this one is already closed. |
Since first versions of minikube I had a bad experience with driver none, and a would really like to get it working without VMs. Even using KVM2 I think it wastes resources and have poor performance.
Steps to reproduce the issue:
Full output of failed command:
Full output of
minikube start
command used, if not already included:N/A
Optional: Full output of
minikube logs
command:The text was updated successfully, but these errors were encountered: