-
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
Rebooting the Minikube VM leads to docker daemon service config disappearing #5706
Comments
This is a known bug, currently it is not possible to manage the VM outside of minikube start. :-( You can set the preferred configuration with |
Correct, you will need to run Much of this is due to the root filesystem of the VM being tmpfs, and thus wiped on reboot. |
Actually, this is a design decision from that ticket being indirectly referenced above. See 56e250e It would be better if this could be stored in configuration (and eventually persisted), |
The auto-upgrade feature is the discussion topic of #2570 |
This is the first time I am really working with minikube, so I doubt I am the one to comment on design decisions - I can only communicate my expectations. I would have expected something more like this:
In general, I am perfectly fine with the tmpfs approach - cattle vs. pets and all ;-) But I think using "minikube config" to set the default settings of my minikube VM and then always running a simple "minikube start" (without having to specify the ton of params) would be an acceptable workaround. I say "would", because it seems that not all settings possible with minikube start have an equivalent setting in minikube config, or if they have one, it doesn't work.
with
Alas, both setting "memory" or the insecure-registry (for which there was a recent feature, and which is indeed listed as a property in "minikube config --help") don't work:
|
That was the change in that other story, to make an optional configuration to not auto-create hosts. Since we are using libmachine, that will always make sure to install/start docker ("provisioning"). |
Please open a new issue about that. |
Meanwhile, I tried other parameters, and also ran into this: #5727 |
The reboot part is annoying, but part of the design: host reboots don't automatically start minikube VM's. When the VM starts, it will be unhealthy until minikube start runs. Moving the general part of cluster creation vs startup to #6097 |
I've tried also to do
|
Do we consider suspending a VM when executing |
I am starting Minikube with
minikube start --disk-size 30G --cpus 4 --insecure-registry : --memory 12g --kubernetes-version=v1.15.4
I chose Kubernetes 1.15.4 because the current released version of Helm doesn't work with 1.16 and Helm 2.15 has a nasty bug.
The cluster works fine until I restart the VM (e.g., after restarting my workstation). After that, kubectl cannot reach the cluster:
Same for helm.
Checking inside the JVM shows me that the docker daemon isn't running:
Doing a
gives
So this sounds a bit like
#1811
although the details are different.
I can fix this by running "minikube start" with the exact same parameters as before (if I use no parameters, the first thing minikube does is update kubernetes, which will not work for me, as mentioned above.). The VM is preserved, as are my hostpath-based volumes.
The text was updated successfully, but these errors were encountered: