-
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
Omission of --kubernetes-version upgrades cluster to the default version #2570
Comments
You'll either need to supply the flag everytime or use |
Thank you for the workarounds. If I start a kube, is it unreasonable to expect that it will stay the same until deleted and re-created, or otherwise explicitly re-configured? If this isn't a bug, I at least consider current behavior to be non-normal. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Agree with @jar349 in that if I launch minikube specifying 1.13.1, then stop, then start it back up, it should NOT auto-upgrade k8s to latest. No other software I have does this behavior; not at least without prompting/asking me first. This is very non-standard behavior and is causing LOTS of problems with out students. |
I can't believe how stupid feature this is. No sw should ever upgrade itself without explicitly asking it! And user should ask it explicitly, no prompt even is not enough. |
/reopen |
@utdrmac: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen |
@jar349: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Might as well have opened a new ticket for discussing this, but I suppose we can start over here... Currently minikube only has one single "start" command, that is used for both create and for start. It is going to be hard to change this ( As stated above, the workaround for both vm-driver and kubernetes-version is using |
@tace the other ways of installing kubeadm also does this, unless explictly holding the version back: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/
So a similar feature ("hold") for minikube could also be an alternative, perhaps ? But probably opt-in. |
Is there an issue discussing the suspend/resume feature? A quick search for |
We’ve discussed it in the office hours, and in docker-machine context, but I don’t think there is any issue. The bot tended to auto-close them anyway, as you have discovered. It is an unrelated feature, either way. You can suspend/resume today, but you have to do it from VirtualBox. Tends to happen automatically when it goes to sleep. |
For this issue, I think we could use the Kubernetes version recorded in the profile for re- |
Sounds reasonable. Also, a line of output to the effect of: |
This behavior is now documented: https://minikube.sigs.k8s.io/docs/reference/configuration/kubernetes/ In a nutshell, if you do not specify I agree that this behavior could be rather surprising. I think a good case could be made for making it so that the omission of
Thoughts? |
Yes, I am in favor of this. In my opinion, using an argument to do something is less surprising than doing something unless an argument is passed. |
Sounds good. Let's commit to doing this. |
/assign @nanikjava |
Initial investigation
Analysis
|
@nanikjava - Your approach sounds great. I'd like to personally be able to set |
Thought: rather than having two flags which may have a confusing interaction (
In a future iteration, we could also build upon your work to support:
|
Logic sounds good. Will implement it. |
It's a good idea to have auto upgrade however I think most minikube user would like to have some sort of control over things that are deployed inside the VM. |
Closing. This was fixed in v1.6! Thank you @nanikjava |
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
Please provide the following details:
Environment:
Mac Sierra (10.12.6)
Minikube version (use
minikube version
):cat ~/.minikube/machines/minikube/config.json | grep DriverName
): virtualboxcat ~/.minikube/machines/minikube/config.json | grep -i ISO
orminikube ssh cat /etc/VERSION
): minikube-v0.23.6.isoWhat happened:
minikube upgraded itself from 1.8 to 1.9 when it was stopped and started
What you expected to happen:
don't upgrade
How to reproduce it (as minimally and precisely as possible):
The text was updated successfully, but these errors were encountered: