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

bug: minikube cannot start on native linux by default #241

Open
axel7083 opened this issue Nov 20, 2024 · 1 comment
Open

bug: minikube cannot start on native linux by default #241

axel7083 opened this issue Nov 20, 2024 · 1 comment

Comments

@axel7083
Copy link
Contributor

Description

If the rootless config is not (not set by default), minikube will not be able to start a cluster on linux. This can be fixed by opening a terminal and running minikube config set rootless true.

Screenshot

Image

Logs

* minikube v1.34.0 on Fedora 41

  - MINIKUBE_HOME=/home/axel7083/.local/share/minikube

* Using the podman driver based on existing profile

X Exiting due to PROVIDER_PODMAN_NOT_RUNNING: "sudo -n -k podman version --format <no value>" exit status 1: sudo: a password is required
* Suggestion: Add your user to the 'sudoers' file: 'axel7083 ALL=(ALL) NOPASSWD: /usr/bin/podman' , or run 'minikube config set rootless true'
* Documentation: https://podman.io


Command execution failed with exit code 63

Proposal solution

They seems to support MINIKUBE_ROOTLESS=true, so we could provide this env variable when creating the cluster. We can add a new option in the form minikube rootless, disabled by default expect on linux?

@afbjorklund
Copy link
Contributor

afbjorklund commented Nov 24, 2024

As far as I know, minikube on podman rootless is rather buggy - at least when using the default docker runtime:

https://minikube.sigs.k8s.io/docs/drivers/podman/

The recommendation is to use containerd, i.e. the same configuration that kind is using for rootless podman

minikube start --driver=podman --container-runtime=containerd


It would be good to make minikube run better with it.

But that would probably require some code changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants