<p>I am running a local Kubernetes cluster through Docker Desktop on Windows. I'm attempting to modify my kube-apiserver config, and all of the information I've found has said to modify <code>/etc/kubernetes/manifests/kube-apiserver.yaml</code> on the master. I haven't been able to find this file, and am not sure what the proper way is to do this. Is there a different process because the cluster is through Docker Desktop?</p>

<blockquote>
<p>Is there a different process because the cluster is through Docker Desktop?</p>
</blockquote>
<p>You can get access to the <code>kubeapi-server.yaml</code> with a Kubernetes that is running on Docker Desktop but in a &quot;hacky&quot; way. I've included the explanation below.</p>
<p>For setups that require such reconfigurations, I encourage you to use different solution like for example <code>minikube</code>.</p>
<p><code>Minikube</code> has a feature that allows you to pass the additional options for the Kubernetes components. You can read more about <code>--extra-config ExtraOption</code> by following this documentation:</p>
<ul>
<li><em><a href="https://minikube.sigs.k8s.io/docs/commands/start/" rel="nofollow noreferrer">Minikube.sigs.k8s.io: Docs: Commands: Start</a></em></li>
</ul>
<hr />
<p>As for the reconfiguration of <code>kube-apiserver.yaml</code> with Docker Desktop</p>
<p>You need to run following command:</p>
<pre class="lang-bash prettyprint-override"><code>docker run -it --privileged --pid=host debian nsenter -t 1 -m -u -n -i sh
</code></pre>
<p>Above command will allow you to run:</p>
<pre class="lang-bash prettyprint-override"><code>vi /etc/kubernetes/manifests/kube-apiserver.yaml
</code></pre>
<p>This lets you edit the API server configuration. The <code>Pod</code> running <code>kubeapi-server</code> will be restarted with new parameters.</p>
<p>You can check below StackOverflow answers for more reference:</p>
<ul>
<li><em><a href="https://stackoverflow.com/a/63720511/12257134">Stackoverflow.com: Answer: Where are the Docker Desktop for Windows kubelet logs located?</a></em></li>
<li><em><a href="https://stackoverflow.com/a/57588995/12257134">Stackoverflow.com: Answer: How to change the default nodeport range on Mac (docker-desktop)?</a></em>
<blockquote>
<p>I've used this answer without <code>$ screen</code> command and I was able to reconfigure <code>kubeapi-server</code> on Docker Desktop in Windows</p>
</blockquote>
</li>
</ul>
