<p>I want to install kube-prometheus on my existing kubernetes cluster(v1.10). Before that, the doc says I need to change the ip address of contrller/scheduler from <code>127.0.0.1</code> to <code>0.0.0.0</code>. And it also recommand to use <a href="https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-config/" rel="nofollow noreferrer">kubeadm config upgrade</a> to change these features:</p>

<pre><code>controllerManagerExtraArgs:
  address: 0.0.0.0
schedulerExtraArgs:
  address: 0.0.0.0
</code></pre>

<p>After reading the doc, i tried with the below command, but it didn't work:</p>

<pre><code>kubeadm upgrade --feature-gates controllerManagerExtraArgs.address=0.0.0.0 
</code></pre>

<p>I know i can use <code>kubectl -n kube-system edit cm kubeadm-config</code> to modify configMap directly, just want to know how to upgrade it from <code>kubeadm upgrade</code></p>

<p>The only way I know of is to use the <code>--config</code> option.</p>

<p>Generate a yaml file that looks like this:</p>

<pre><code>controllerManagerExtraArgs:
  address: 0.0.0.0
schedulerExtraArgs:
  address: 0.0.0.0
</code></pre>

<p>and then run:</p>

<pre><code>kubeadm upgrade apply --config /etc/kubeadm.yaml
</code></pre>
