<p>I am running kubernetes inside 'Docker Desktop' on Mac OS High Sierra.</p>

<p><a href="https://i.stack.imgur.com/C8raD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C8raD.png" alt="enter image description here"></a></p>

<p>Is it possible to change the flags given to the kubernetes api-server with this setup?</p>

<p>I can see that the api-server is running.</p>

<p><a href="https://i.stack.imgur.com/RkVoK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RkVoK.png" alt="enter image description here"></a></p>

<p>I am able to exec into the api-server container. When I kill the api-server so I could run it with my desired flags, the container is immediately killed.</p>

<p><a href="https://i.stack.imgur.com/oSYaL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oSYaL.png" alt="enter image description here"></a></p>

<p>Try this to find the name of apiserver deployment:</p>

<pre><code>kubectl -n kube-system get deploy | grep apiserver
</code></pre>

<p>Grab the name of deployment and edit its configuration:</p>

<pre><code>kubectl -n kube-system edit deploy APISERVER_DEPLOY_NAME
</code></pre>

<p>When you do that the editor will open and from there you can change apiserver command line flags. After editing you should save and close editor, then your changes will be applied.</p>
