Overview

Joining to a Kubernetes Cluster is done from the joining machine and verified on the Control Panel (e.g. master) machine. The joining process itself is pretty straight forward and require only one command. The command which was given to us when we initialized the cluster.

So let's get going.

Joint to the cluster

Be sure that you installed the necessary packages from the introduction section. Once this is done we can add the node to the cluster as follow:

Add node

As with the master node, it might take sometime until you see the node as Ready and all components running from the Control Panel Machine:

Check the newly added Node

Please execute that step on all nodes. In the end you should have something like this:

Check the newly added Node

Assign role to a Node

You saw that our nodes have no roles. We have 1 master and that is that :)

Nodes' roles

So let's assign worker to our node-1 and node-2

Assign Labels to Node-1 and Node-2

Alternatively we can remove a label from a node. So let's remove and add that label again on Node-2:

Remove and Add Label on Node-2