Skip to content

Local Kubernetes development with kind

kind (Kubernetes in Docker) is a tool used for running Kubernetes clusters locally using Docker containers as "nodes".^[400-devops-06-kubernetes-basics-readme.md] This allows developers to create a local environment that simulates a Kubernetes cluster without requiring the overhead of setting up a full virtual machine or cloud infrastructure.

Installation

To interact with a Kubernetes cluster, the command-line tool kubectl is required^[400-devops-06-kubernetes-basics-readme.md]. Additionally, the kind binary must be installed to manage the local cluster nodes^[400-devops-06-kubernetes-basics-readme.md].

Creating a Cluster

A local Kubernetes cluster can be instantiated by specifying a desired version of the Kubernetes node image^[400-devops-06-kubernetes-basics-readme.md]. For example, to create a cluster running version v1.23.5, the following command is used^[400-devops-06-kubernetes-basics-readme.md]:

kind create cluster --image kindest/node:v1.23.5

Sources

^[400-devops-06-kubernetes-basics-readme.md]