minikube
minikube copied to clipboard
Minikube Wont start on Fedora 37 with Docker Driver because Kubelet process does not start
What Happened?
Fresh Installation of Fedora 37. Installed Docker , and installed Minikube. Docker seems to work fine , but minikube fails to start.
Reason: Cant connect to kubelet service. You may inspect logs further but from what i understand , kubelet service is not being installed correctly. I will attach logs to this issue.
After installing minikube, and after multiple failed attempts for a cluster creation i get this:
[gamol@gamol-z01 ~]$ systemctl enable kubelet.service Failed to enable unit: Unit file kubelet.service does not exist.
[gamol@gamol-z01 ~]$ journalctl -xeu kubelet
has no entries.
Which makes me believe that kubelet service was not installed properly.
I am on Fedora 37. Have tried with latest patches as well.
Attach the log file
Operating System
Redhat/Fedora
Driver
Docker
You need to run the systemd commands under minikube ssh
(on the node), not on the host.
Having the same issue. Fresh install of Fedora 37, Docker and minikube. Unable to start minikube.
You need to run the systemd commands under
minikube ssh
(on the node), not on the host.
Doesn't minikube have to be running in order to run minikube ssh? The problem we're having is that minikube doesn't start in the first place.
Sure, the self-destruct feature makes it harder to get logs (before it is deleted)
But it is still normal that there is no kubelet service in the host (only in the minikube "node")
Tried steps in OP in fresh install of Ubuntu instead of Fedora and everything worked.
Ran minikube v1.26.0-beta version. Works on Fedora 37. Seems like Fedora 37 and minikube 1.28.0 don't work together.
I don't think anyone tried Fedora, could it be selinux ?
- https://github.com/kubernetes/minikube/issues/3552
I think this problem is related to Btrfs. I can reproduce the problem when doing a Fedora 37 install with default Btrfs setup, but when selecting Ext4 for the root file system during install, Minikube 1.28.0 works almost(https://github.com/kubernetes/minikube/issues/15573) as expected.
With Btrfs, kubelet fails to start with this error message:
minikube kubelet[14140]: E0102 16:22:03.156579 14140 run.go:74] "command failed" err="failed to set feature gates from initial flags-based config: cannot set feature gate LocalStorageCapacityIsolation to false, feature is locked to true"
Might need some other workaround then, similar to:
- https://github.com/kubernetes/minikube/pull/15336
A minikube built from master as of today, seems to work fine on Fedora 37 with Btrfs and Kubernetes v1.25.3.
Until we have a new minikube release, a workaround is to run with Kubernetes version < 1.25:
minikube start --kubernetes-version=v1.24.9
Thanks for looking into the issue.
It seems this has been resolved. minikube version v1.29.0
works as expected on fedora 37.