<p>It looks like Docker Desktop for Mac is using a 1.22+ version of Kubernetes which introduces a number of breaking changes specifically to the <code>ingress-nginx</code> controller <code>apiVersion</code>. This is causing issues with our local development cluster.</p>
<p>There are couple options:</p>
<ol>
<li>Rolling back the Kubernetes version to something <code>&lt;1.22</code> in the development cluster.</li>
<li>Updating <code>ingress-nginx</code> and the development configuration to use <code>&gt;=1.22</code>.</li>
</ol>
<p>I'm trying to go with route <code>1.</code> and downgrade the version to match our production cluster: <code>v1.20.7</code> primarily because 1.22+ isn't available in Azure yet it looks like. It makes sense to me to have the development and production versions match.</p>
<p>That is my question: <strong>How do you change the version of Kuberentes that `docker-desktop uses?</strong></p>
<p>If that can't be done, then I guess I'll just have to go with <code>2.</code></p>
<hr />
<p>What've tried so far is simply following the <code>kubectl</code> <a href="https://kubernetes.io/docs/tasks/tools/install-kubectl-macos/" rel="nofollow noreferrer">documentation</a>:</p>
<pre><code>curl -LO &quot;https://dl.k8s.io/release/v1.20.7/bin/darwin/arm64/kubectl&quot;

chmod +x ./kubectl

sudo mv ./kubectl /usr/local/bin/kubectl

kubectl version --client
Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;23&quot;, GitVersion:&quot;v1.23.0&quot;, GitCommit:&quot;ab69524f795c42094a6630298ff53f3c3ebab7f4&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2021-12-07T18:08:39Z&quot;, GoVersion:&quot;go1.17.3&quot;, Compiler:&quot;gc&quot;, Platform:&quot;darwin/arm64&quot;}
</code></pre>
<p>Skeptical it was going to work and sure enough it doesn't.</p>
<hr />
<p>Edit:</p>
<p>Option <strong>3.</strong>: use something like <code>minikube</code>, <code>mikrok8s</code>, <code>k3d</code>, etc.</p>
<p>It is looking like the only way to downgrade change the <code>kubectl</code> version is to downgrade Docker Desktop for Mac.</p>

<p>As best as I could determine, there is not a way to do this. (Please correct me if I'm wrong).</p>
<p>The options appear to just be:</p>
<ol>
<li>Downgrade Docker Desktop for Mac to a version that has the version of Kubernetes that you want. Can find previous versions here: <a href="https://docs.docker.com/desktop/mac/release-notes/" rel="noreferrer">https://docs.docker.com/desktop/mac/release-notes/</a></li>
<li>Use something like <code>minikube</code>, <code>mikrok8s</code>, <code>k3d</code>, etc. that gives you better control over the Kubernetes version being used.</li>
</ol>
<p>I ended up just dong <code>1.</code> as opposed to adding another tool to our development environment, but <code>2.</code> feels like a much better option.</p>
