Setting Up a Multi-Node Kubernetes Cluster using Kind (Without EKS, AKS, or GKE)

2025-04-19 11:07

In many development or CI/CD scenarios, you might want to simulate a multi-node Kubernetes Cluster without relying on managed services like EKS (AWS), AKS (Azure), or GKE (Google Cloud). Kind (Kubernetes IN Docker) is a lightweight tool that lets you run Kubernetes clusters locally using Docker containers as cluster nodes. It means there Kind will create different docker containers as Controller Plane and Worker Nodes. It's especially useful for testing multi-node configurations on a single host.

This guide walks you through setting up a multi-node Kubernetes cluster using Kind, its advantages, and how it compares to other tools in the Kubernetes ecosystem.

⚙️ Prerequisites

📚 Step-by-Step Installation Guide

1) Install Docker: (https://docs.docker.com/engine/install/ubuntu/)

2) Install Kind:

For AMD64 / x86_64

[ $(uname -m) = x86_64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.27.0/kind-linux-amd64

For ARM64

[ $(uname -m) = aarch64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.27.0/kind-linux-arm64
chmod +x ./kind 
sudo mv ./kind /usr/local/bin/kind 
kind version

3) Install Kubectl:

curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" 
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"     
echo "$(cat kubectl.sha256)  kubectl" | sha256sum --check
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
kubectl version --client 

4) Create Kind Config File for Multi-Node Cluster

Create a file named multinode-k8s-cluster.yaml:

       kind: Cluster 
       apiVersion: kind.x-k8s.io/v1alpha4 
       nodes:
       - role: control-plane
       - role: worker
       - role: worker 
       - role: worker

5) Create the Cluster:

kind create cluster --name multinode-k8s-cluster --config=multinode-k8s-cluster.yaml

6) Verify Cluster Status:

kubectl config current-context
kubectl cluster-info --context kind-multinode-k8s-cluster
kubectl get nodes

🧠 Why Use Kind? (vs Other Tools)

Feature

Kind

Minikube

k3s

Managed Services (EKS/AKS/GKE)

Setup Time

Fast

Medium

Medium

Slow (Provisioning Time)

Resource Usage

Low

Moderate

Low

High

Multi-node Support

Yes

Yes

Yes

Yes

Realistic Networking

Limited

Better

Good

Best

Ideal Use Case

Local dev, CI/CD

Local dev

Edge, Dev/Prod

Production

Internet Required

No

Partially

No

Yes

Cost

Free

Free

Free

Pay-as-you-go


🚀 Conclusion

Kind is an excellent tool for development, testing, and CI/CD environments. While it doesn't replicate all production behaviours (like full networking), it offers a quick, low-resource solution to test multi-node configurations. For lightweight experimentation or pipeline automation, Kind is one of the best choices available.

If you're looking to simulate a full Kubernetes cluster on a budget without any managed service lock-in, Kind is your go-to option.