Kind: Kubernetes in Docker

Discover how to run a Kubernetes cluster in Docker using Kind, a tool that allows you to create a Kubernetes cluster in seconds.

When working with Kubernetes (k8s), it is always a good idea to have a local cluster to test and develop your applications. There are several tools to create a local k8s cluster, such as Minikube, K3s, or Kind.

But we are going to focus on Kind, a tool that allows you to create a Kubernetes cluster in seconds.

What is Kind?

Kind is a tool for running local Kubernetes clusters using Docker container “nodes”. It was primarily designed for testing Kubernetes itself, but may be used for local development or CI.

Source code

You can find the source code for this article in the fernandoarteaga/learn-devops repository on GitHub.

learn-devops

DevOps examples and hand-ons.

devops
kubernetes
docker
helm
terraform
CI/CD

Setup

We’ll be deploying a simple Astro application to our Kind cluster. Yep, that simple 😃!

You can follow the instructions in the fernandoarteaga/learn-devops repository to deploy the application to your Kind cluster.

The only thing you need to do before, is to install Kind on your local machine. You can find the installation instructions in the official Kind documentation.