Skip to content

kind local Kubernetes cluster

kind (Kubernetes in Docker) is a tool for running local Kubernetes clusters using Docker container "nodes".^[400-devops__06-Kubernetes__basics__README.md] It is designed primarily for testing Kubernetes itself, but it functions effectively as a local development environment to port existing infrastructure to Kubernetes^[400-devops__06-Kubernetes__basics__README.md].

Installation and Prerequisites

Before running kind, users must install the kubectl command-line tool to interact with the cluster^[400-devops__06-Kubernetes__basics__README.md]. Additionally, because kind runs Kubernetes nodes within Docker containers, a functional Docker installation is required^[400-devops__06-Kubernetes__basics__README.md].

Creating a Cluster

To initialize a local Kubernetes environment, the kind binary is used to create a cluster^[400-devops__06-Kubernetes__basics__README.md]. Users can specify a specific Kubernetes version for the node images during creation, for example, using the command kind create cluster --image kindest/node:v1.23.5^[400-devops__06-Kubernetes__basics__README.md].

Sources

  • 400-devops__06-Kubernetes__basics__README.md