Updating the Cluster
In this lesson, we will change and update the configuration of our cluster.
Editing the Definition
With kops, we cannot update the cluster directly. Instead, we edit the desired state of the cluster stored, in our case, in the S3 bucket. Once the state is changed, kops will make the necessary changes to comply with the new desire.
We’ll try to update the cluster so that the number of worker nodes is increased from one to two. In other words, we want to add one more server to the cluster.
The kops edit
Commands
Let’s see the sub-commands provided through kops edit
.
kops edit --help
The output, limited to the available commands, is as follows.
...Available Commands:cluster Edit cluster.federation Edit federation.instancegroup Edit instancegroup....
We have three types of edits we can make.
Edit Federation
We did not set up the federation, so that one is out of the game.
Edit Cluster
You might think that cluster
would provide the possibility to create a new worker node. However, that is not the ...