How to configuring Kubernetes on the Worker node only

So we now continue our Kubernetes settings if you have missed here you can find a guide on How to configuring Kubernetes on the Master node only

Each Kubernetes installation needs to have one or more worker nodes that run the containerized applications. We’ll only configure one worker in this example but repeat these steps to join more nodes to your cluster.

Open ports used by Kubernetes.

firewall-cmd --zone=public --permanent --add-port={10250,30000-32767}/tcp 

Make the changes permanent.

firewall-cmd --reload

Join the cluster with the previously noted token.

Note that the join token below is just an example.

kubectl get nodes

The output should be:

master  Ready    master   10m   v1.18.0 
worker  Ready       28s   v1.18.0

On success, you should see two nodes with ready status. If not, wait a moment and repeat the command.

Congratulations, you should now have a working Kubernetes installation running on two nodes.

In case anything goes wrong, you can always repeat the process.

Run this on Master and Workers to remove all connections:

kubeadm reset && rm -rf /etc/cni/net.d