<p>I created a cluster with kops in the AWS.</p>

<pre><code>sudo kops create cluster --name=k8s.ehh.fun --state=s3://kops-state-ehh000 --zones=us-east-1a --node-count=3 --node-size=t2.micro --master-size=t2.micro --dns-zone=k8s.ehh.fun
</code></pre>

<p>And now a Would like to change the node-count without destroy the cluster. How can I do that?
I tried :</p>

<pre><code> sudo kops update cluster --name=k8s.ehh.fun --state=s3://kops-state-ehh000 --node-count=3 --node-size=t2.micro 
</code></pre>

<p>But I got : Error: unknown flag: --node-count</p>

<p>You can change the node count by editing the <code>nodes</code> instance group:</p>

<pre><code>kops edit instancegroup nodes
</code></pre>

<p>This will open an editor in which you can edit your instance group's specification and increase the code count. After saving and exiting, call:</p>

<pre><code>kops update cluster &lt;cluster-name&gt; --yes
</code></pre>

<p>This will automatically update your auto-scaling group and start additional instances (or terminate them if you decreased the node count).</p>

<p>See <a href="https://github.com/kubernetes/kops/blob/master/docs/instance_groups.md#resize-an-instance-group" rel="noreferrer">the documentation</a> for more information.</p>
