Introduction

kind is another Kubernetes SIGs project but is quite different compared to minikube. It moves the cluster into Docker containers. This leads to a significantly faster startup speed compared to spawning a VM.

kind is a tool (CLI) for running local Kubernetes clusters using Docker container nodes.

Let’s get started.

Prerequisites

The following things should be available in the local system.

  • Go
  • The Docker service needs to be running

Installation

The following command should download and install the kind binary.

GO111MODULE=”on” go get sigs.k8s.io/kind@v0.8.1

Make Sure the kind Binary Is Present

> kind version
kind v0.8.1 go1.14.2 darwin/amd64

Now, we should be able to use the kind CLI to spin up a K8s cluster.

Usage of kind :

Usage:
  kind [command]Available Commands:
  build       Build one of [node-image]
  completion  Output shell completion code for the specified shell
  create      Creates one of [cluster]
  delete      Deletes one of [cluster]
  export      Exports one of [kubeconfig, logs]
  get         Gets one of [clusters, nodes, kubeconfig]
  help        Help about any command
  load        Loads images into nodes
  version     Prints the kind CLI version

In this article, we’ll be focusing predominantly on the createget, and delete commands.


Create a Cluster

To create a cluster, just execute.

**cmd: **kind create cluster

#programming #kind #kubernetes #containers #devops

A Simple Way to Create Kubernetes Clusters Locally Using kind
1.55 GEEK