<p>I installed the minikube for local kubernetes development according to article <a href="http://www.bogotobogo.com/DevOps/DevOps-Kubernetes-1-Running-Kubernetes-Locally-via-Minikube.php" rel="nofollow noreferrer">DevOps-Kubernetes-1-Running-Kubernetes-Locally-via-Minikube</a></p>

<ul>
<li>Ubuntu 16.04 LTS</li>
<li>minikube 0.20.0 </li>
</ul>

<p>The default kubernetes for minikube <code>0.20.0</code> is <code>v1.6.4</code> and I use follow command to use new release <code>v1.7.0</code></p>

<pre><code>minikube start  --kubernetes-version v1.7.0
</code></pre>

<p>How can I set this as default in configuration for minikube ?</p>

<p>So far, if I run <code>minikube start</code>, it always starts default <code>v1.6.4</code> even the server VM is upgraded to <code>v1.7.0</code></p>

<pre><code>$ minikube start
Starting local Kubernetes v1.6.4 cluster...
Starting VM...
...
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.0", 
GitCommit:"d3ada0119e776222f11ec7945e6d860061339aad", GitTreeState:"clean", 
BuildDate:"2017-06-29T23:15:59Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
The connection to the server 192.168.42.96:8443 was refused - did you specify the right host or port?
</code></pre>

<p>You can set its default value with:</p>
<pre><code>minikube config set kubernetes-version v1.7.0
</code></pre>
<p>It edits <code>~/.minikube/config/config.json</code> and adds:</p>
<pre><code>{
    &quot;kubernetes-version&quot;: &quot;v1.7.0&quot;
}
</code></pre>
<p>Check out <a href="https://minikube.sigs.k8s.io/docs/handbook/config/#selecting-a-kubernetes-version" rel="nofollow noreferrer">Selecting a Kubernetes version</a> in the documentation. Check source code <a href="https://github.com/kubernetes/minikube/blob/master/cmd/minikube/cmd/config/config.go" rel="nofollow noreferrer">config.go</a> for reference.</p>
