<p>When running Docker for Windows, the level of detail in the logs for <code>kube-apiserver</code> is relatively low. Since the k8s node is hosted in a VM it is not obvious where to make changes to the default configuration.</p>

Derek Adams
<p>First, log in to the VM using the technique in this <a href="https://www.bretfisher.com/getting-a-shell-in-the-docker-for-windows-vm/" rel="nofollow noreferrer">article</a>. Once logged in to a Unix shell, execute:</p>

<p><code>cd /var/lib/kubeadm/manifests</code></p>

<p>.. then edit the <code>kube-apiserver.yaml</code> using an editor such as:</p>

<p><code>vi kube-apiserver.yaml</code></p>

<p>Add a new line, <code>--v=4</code> in the <code>spec</code> section that determines the command:</p>

<pre><code>spec:                                                                                                                                                       
  containers:                                                                                                                                               
  - command:                                                                                                                                                  
  - kube-apiserver                                                                                                                                          
  - --v=4     
</code></pre>

<p>Save the updates, then kill the <code>kube-apiserver</code> pod so that it restarts with the new configuration.</p>
