kubernetes / minikube

Run Kubernetes locally
https://minikube.sigs.k8s.io/
Apache License 2.0
29.14k stars 4.86k forks source link

Control kubernetes server version #201

Closed sliranc-zz closed 7 years ago

sliranc-zz commented 8 years ago

Is it possible to select the master version ?

dlorenc commented 8 years ago

This isn't currently possible. It's something we'd like to add in the future. Could you explain your use case a bit? It will help us prioritize this feature.

sliranc-zz commented 8 years ago

We would like to try and use this for our application development running on k8s and we would like to set the version to the same version as our production clusters.

dlorenc commented 8 years ago

To everyone interested in this issue: What granularity of control do you need? Is the Kubernetes release sufficient (v1.2.2, v.1.2.3, v.1.3.0, etc.)? Or do you need the ability to run any commit?

martinffx commented 8 years ago

+1

Certain applications that run on top of Kubernetes require a specific version to run.

For example Deis Workflow only supports v1.2

So being able to specify the version and probably being able to multiple clusters running different versions.

martinffx commented 8 years ago

even if minikube obeyed K8S_VERSION env variable

http://kubernetes.io/docs/getting-started-guides/docker/

dlorenc commented 8 years ago

Here's roughly what I'm thinking:

Here's what this might look like to use (assuming 1.3.0 is the latest default):

$ minikube get-kubernetes-versions
v1.2.5
v.1.3.0-alpha.1
v.1.3.0-alpha.2
v.1.3.0-beta.1
v.1.3.0-alpha.2
[v1.3.0]

$ minikube start
$ kubectl version
Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.0", GitCommit:"abcdef", GitTreeState:"clean"}
$ minikube delete
$ minikube start --kubernetes-version=v1.2.5
$ kubectl version
Server Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.5", GitCommit:"abcdef", GitTreeState:"clean"}
MHBauer commented 8 years ago

For development of kubernetes itself, I'd like it to get to the point that I have the kubernetes code checked out and modified (or on a named branch, etc), and you build and deploy that specific to me version.

MHBauer commented 8 years ago

I am also totally willing to help out on this (or anything else) with a little bit of guidance.

dlorenc commented 8 years ago

Awesome @MHBauer. I think @aaron-prindle has this one under control now, but I'll try to find something else you can help out with. I'm happy to help you get started :)

r2d4 commented 7 years ago

Closing this as we've had it in since v0.8.0