worker cluster

The worker cluster configuration steps are very similar to the control-panel cluster.

Step 1: Prepare the System

  • Configure kernel modules by creating a configuration file:

cat <<EOF | sudo tee /etc/modules-load.d/k8s.conf
overlay
br_netfilter
EOF

Load the required kernel modules:

sudo modprobe overlay
sudo modprobe br_netfilter
sudo sysctl --system

Step 2: Install Container Runtimes

  • Add Docker's official GPG key:

sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg

Add the Docker repository to Apt sources:

Install containerd.io:

Step 3: Install Container Networking Plugins

  • Download and install CNI plugins:

Edit the containerd configuration:

Add the following configuration under

You need CRI support enabled to use containerd with Kubernetes. Make sure that cri is not included in thedisabled_plugins list within /etc/containerd/config.toml;

Restart containerd:

Step 4: Install Kubernetes Tools

  • Install necessary tools and set up the Kubernetes repository:

List available versions of kubeadm:

Install kubeadm, kubelet, and kubectl (replace 1.28.0 with your desired version):

After completing this process, you now have your worker cluster installed.

Connecting cluster worker with cluster control-plane:

  • Access your control pane cluster and create the token to connect your worker cluster.

A token will be generated see below for an example

kubeadm join 111.231.252.43:6443 --token 17htao.wo5w0fn1rpg21e9m --discovery-token-ca-cert-hash sha256:ea9a3611d926cf9a7cfadb089a0d47500f89bab1g5ef45310b9a8d82a65c48b

Now just copy the generated token into your cluster worker and the connection will be established. Once this is done, when consulting your node you will see the connection successfully.

Last updated