<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>

user674669
<p>Try this to find the name of kube-apiserver pod name:</p>
<pre><code>kubectl -n kube-system get pods | grep apiserver
</code></pre>
<p>Grab the name of the pod and edit its configuration:</p>
<pre><code>kubectl -n kube-system edit pod APISERVER_POD_NAME
</code></pre>
<p>When you do that, the editor will open and you can change apiserver command line flags from there.
After editing you should save and close the editor, your changes will be applied.</p>
