How to Install Kubernetes on Master and Worker nodes

In our previous guide, you could read on How to install Kubernetes cluster on Linux CentOS 8 VPS, VDS, Server that is located HERE. But in this guide, we will show you how you can install Master and Worker nodes.

With all the necessary parts installed, we can get Kubernetes installed as well.

Add the Kubernetes repository to your package manager by creating the following file.

cat < /etc/yum.repos.d/kubernetes.repo
exclude=kubelet kubeadm kubectl

Then update the repo info.

dnf upgrade -y

Install all the necessary components for Kubernetes.

dnf install -y kubelet kubeadm kubectl --disableexcludes=kubernetes

Start the Kubernetes services

systemctl start kubelet

Enable the Kubernetes services on the startup.

systemctl enable kubelet

Once running on both nodes, begin configuring Kubernetes on the Master by following the instructions in the next section.

By clicking here you will find a user guide on How to configuring Kubernetes on the Master node only