How to Set Up a Kubernetes Cluster using kind: A Comprehensive Guide..

Saime shaikhSaime shaikh
2 min read

Kubernetes Cluster Setup

The Growing Popularity of Kubernetes: What You Should Know..

Kubernetes is emerging as an important tool in the technology industry. Over 83 percent of developers surveyed in 2023 stated that they use it for container orchestration. Scaling, application deployment, and management of containerized applications are easy tasks with Kubernetes. Without it, the management of these applications is difficult, often resulting in deployment problems and resource waste.

Now let’s start .

pre-requisite

  • AWS EC2

    t2. Medium

  • Docker

  • Kind

  • Kubernetes Config.yml

  1. Install Docker

     sudo apt-get install docker.io -y
     sudo usermod -aG docker $USER && newgrp docker 
     sudo reboot
    
  2. Install Kubectl

     curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
     chmod +x kubectl
     sudo mv kubectl /usr/local/bin/
     kubectl version --client
    
  3. Install KIND

     curl -Lo ./kind "https://kind.sigs.k8s.io/dl/v0.22.0/kind-linux-amd64"
     chmod +x kind
     sudo mv kind /usr/local/bin/
     kind version # verify kind is installed or not
    

  4. Now we need to create a config.yml file to create a Cluster

mkdir Kubernetes_file 
cd Kubernetes_file
vim config.yml
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
  image: kindest/node:v1.32.1
- role: worker
  image: kindest/node:v1.32.1
- role: worker
  image: kindest/node:v1.32.1
kind create cluster --config config.yml --name <any name as you want >

kubectl get nodes

Thanks for Reading…

1
Subscribe to my newsletter

Read articles from Saime shaikh directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Saime shaikh
Saime shaikh

As a final-year BTech student specializing in Cloud Computing at Ajeenkya DY Patil University 🎓, I am passionate about leveraging technology to create innovative solutions. Throughout my academic journey, I have developed a strong foundation in DevOps practices, cloud services, and automation ☁️, complemented by hands-on experience in tools like Kubernetes, Terraform, Docker, and AWS. My participation in various workshops and courses has deepened my understanding of these technologies, earning me certifications that showcase my commitment to continuous learning and professional growth 📜.