Creating a Kubernetes Cluster using kind

Ana Jessica
featurepreneur
Published in
2 min readFeb 3, 2022

Kubernetes, also known as K8s, is an open-source system for automating deployment, scaling, and management of containerized applications.

kubectl is the Kubernetes command-line tool that allows you to run commands against Kubernetes clusters. You can use kubectl to deploy applications, inspect and manage cluster resources, and view logs.

kind is a tool for running local Kubernetes clusters using Docker containers. It can create a Kubernetes cluster within minutes.

Installing kubectl on Linux

  • Execute these commands to 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/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"echo "$(<kubectl.sha256)  kubectl" | sha256sum --checksudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
  • Check if kubectl is installed
kubectl version --client

Installing Docker

  • Install docker.io using ‘apt’
sudo apt install docker.iosudo groupadd dockersudo usermod -aG docker $USERnewgrp docker
  • Check if docker is installed
docker

Installing kind

  • Install kind, after docker has been installed
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64chmod +x ./kindsudo mv ./kind /usr/games/kind
  • Check if kind is installed
kind
  • To create a cluster using kind
kind create cluster --name <cluster_name>
  • To view the clusters created
kind get clusters
hhhhhhhhhhhhhhhhhhhhh

Thus, you have created a Kubernetes Cluster using kind !

--

--