From 650a370d89ba40fa6ceefb77e3d9f3deeaa8914b Mon Sep 17 00:00:00 2001 From: Matt McNaughton Date: Fri, 25 Aug 2017 13:57:55 -0400 Subject: [PATCH] Add section on specifying k8s version for minikube (#5172) I struggled to discover information on how to specify a kubernetes version when starting minikube. Ultimately, I found the answer through searching Github issues, and also running `minikube start --help`. Given it seems like a fairly common task, I think it could be useful to include it in the getting started documentation. --- docs/getting-started-guides/minikube.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/getting-started-guides/minikube.md b/docs/getting-started-guides/minikube.md index f9e886e7f6..3def1949f8 100644 --- a/docs/getting-started-guides/minikube.md +++ b/docs/getting-started-guides/minikube.md @@ -143,6 +143,23 @@ Unfortunately just setting the environment variables will not work. Minikube will also create a "minikube" context, and set it to default in kubectl. To switch back to this context later, run this command: `kubectl config use-context minikube`. +#### Specifying the Kubernetes version + +Minikube supports running multiple different versions of Kubernetes. You can +access a list of all available versions via + +``` +minikube get-k8s-versions +``` + +You can specify the specific version of Kubernetes for Minikube to use by +adding the `--kubernetes-version` string to the `minikube start` command. For +example, to run version `v1.7.3`, you would run the following: + +``` +minikube start --kubernetes-version v1.7.3 +``` + ### Configuring Kubernetes Minikube has a "configurator" feature that allows users to configure the Kubernetes components with arbitrary values.