Appendix A. Creating a Kubernetes cluster with kind
This appendix shows you how to install a kind (Kubernetes in Docker) Kubernetes cluster with multiple nodes, where the nodes are Docker containers. You will download and install kind, which will use the kubeadm tool (packaged with kind) to bootstrap your cluster. You will also learn how to set the context for your cluster. This will come in handy if you are switching between multiple clusters, or between multiple users in the same cluster. The only prerequisite for this section is Docker and kind, which we will walk through installing together.
A.1 Installing the required packages
As mentioned, the only prerequisites to creating a kind Kubernetes cluster are Docker and kind. Docker Desktop is a software suite of products by Docker that makes it easier to build, run, and share containerized applications and microservices. If you don’t already have Docker Desktop installed, you can visit the following link to download it: https://docker.com/products/docker-desktop. Docker Desktop is available for Windows, macOS, and Linux operating systems. You can install kind using your operating system’s package manager, or you can also download kind here: https://github.com/kubernetes-sigs/kind/releases. Kind is also available for Windows, macOS, and Linux. For this guide, we’ll be using version 0.29.0.