Minikube: Show which versions of Kubernetes are available to use

Created on 1 Mar 2017  路  4Comments  路  Source: kubernetes/minikube

FEATURE REQUEST

Please offer a minikube start subcommand for showing the list of available Kubernetes versions, so that users don't have to guess in the dark which version strings will result in a valid download URL.

Most helpful comment

@raiviskrumins Thanks for your reply.

I know about --kubernetes-version but it doesn't really help in the sense, that you need to know the exact version of kubernetes that you want to run.

If I run minikube start --kubernetes-version '1.10' I get this error:

Starting local Kubernetes 1.10 cluster...
Starting VM...
Getting VM IP address...
Moving files into cluster...
E1116 15:34:45.763458   18280 start.go:254] Error updating cluster:  generating kubeadm cfg: parsing kubernetes version: parsing kubernetes version: No Major.Minor.Patch elements found

I don't know the latest Patch version and it's somewhat hard to find it online.

I think it would be nice if minikube would either:

  • automatically select the latest Patch version in case you omit it.
  • offer a command such as get-k8s-versions to get a list of all available versions.

All 4 comments

This should already be possible via the minikube get-k8s-versions command:
https://github.com/kubernetes/minikube/blob/master/docs/minikube_get-k8s-versions.md

minikube get-k8s-versions doesn't work with 0.30.0.

@feluxe please read this https://github.com/kubernetes/website/pull/10423
this command ir removed, now you can use k8s version in free form:
minikube start --kubernetes-version v1.10.10

@raiviskrumins Thanks for your reply.

I know about --kubernetes-version but it doesn't really help in the sense, that you need to know the exact version of kubernetes that you want to run.

If I run minikube start --kubernetes-version '1.10' I get this error:

Starting local Kubernetes 1.10 cluster...
Starting VM...
Getting VM IP address...
Moving files into cluster...
E1116 15:34:45.763458   18280 start.go:254] Error updating cluster:  generating kubeadm cfg: parsing kubernetes version: parsing kubernetes version: No Major.Minor.Patch elements found

I don't know the latest Patch version and it's somewhat hard to find it online.

I think it would be nice if minikube would either:

  • automatically select the latest Patch version in case you omit it.
  • offer a command such as get-k8s-versions to get a list of all available versions.
Was this page helpful?
0 / 5 - 0 ratings