<p>I'm creating a cluster with <code>kubeadm init --with-stuff</code> (Kubernetes 1.8.4, for reasons). I can setup nodes, <code>weave</code>, etc. But I have a problem setting the cluster name. When I open the <code>admin.conf</code> or a different config file I see:</p>

<pre><code>name: kubernetes
</code></pre>

<p>When I run <code>kubectl config get-clusters</code>:</p>

<pre><code>NAME
kubernetes
</code></pre>

<p>Which is the default. Is there a way to set the cluster name during <code>init</code> (there is no command line parameter)? Or is there a way to change this after the <code>init</code>? The current <code>name</code> is referenced in many files in <code>/etc/kubernetes/</code></p>

<p>Best Regrads<br>
Kamil</p>

<p>You can now do so using kubeadm's config file. PR here:</p>

<p><a href="https://github.com/kubernetes/kubernetes/pull/60852" rel="noreferrer">https://github.com/kubernetes/kubernetes/pull/60852</a></p>

<p>Using the kubeadm config you just set the following at the top level</p>

<pre><code>clusterName: kubernetes
</code></pre>
