<p>I tried to open <code>nodePort 80/443</code>, but it failed because it was outside the default <code>nodePort</code> range.</p>
<p>Solution is add <code>- --service-node-port-range</code> option to static pod <code>kube-apiserver-docker-desktop</code>. But how can I modify the static pod using Docker Desktop on Windows? I tried to edit this pod directly but failed.</p>
<pre class="lang-bash prettyprint-override"><code>kubectl edit pod kube-apiserver-docker-desktop -n kube-system
</code></pre>

FakeAlcohol
<p>You need to run a privileged docker container :</p>
<pre><code>$ docker run -it --privileged --pid=host debian nsenter -t 1 -m -u -n -i sh
</code></pre>
<p>Then edit kubernetes configuration here :</p>
<pre><code>$ vi /etc/kubernetes/manifests/kube-apiserver.yaml
</code></pre>
<p>Add the command line param in the list with the ports you need:</p>
<pre><code>        - --service-node-port-range=80-36000
</code></pre>
<p>This StackOverflow question explain how to process :</p>
<p><a href="https://stackoverflow.com/questions/64758012/location-of-kubernetes-config-directory-with-docker-desktop-on-windows">Location of Kubernetes config directory with Docker Desktop on Windows</a></p>
