KindΒΆ
Using the Kind project, you are able to easily deploy a Kubernetes cluster on top of Docker as Docker containers. Kind will spawn separate containers which be shown as the Kubernetes nodes. In this documentation, you can find some examples, as well as a link to a Ansible playbook which can do the cluster creation / deletion for you. This document only describes the basics of Kind. To find more detailed information, you can check the official Kind documentation.
Kind is ideal to use in a local development environment or even during a build pipeline run.
Installation on LinuxΒΆ
Since Kind deploys Docker containers, it needs to have a Container engine (like Docker) installed.
Installing Kind can be done by downloading the latest available release / binary for your platform:
Cluster managementΒΆ
Cluster creationΒΆ
You have to provide a configuration file which tells Kind how you want your Kubernetes cluster to be deployed. Find an example configuration file below:
Create the cluster by the following command:
Checking for Docker containers running, you can see the following:
Interacting with your clusterΒΆ
You may have multiple Kind clusters deployed at the same time. To get a list of running clusters, you can use the following command:
After cluster creation, the Kubernetes context is set automatically to the newly created cluster. In order to set the currently used kubeconfig, you may use some tooling like kubectx. You may also set the current context used by kubectl
with the --context
option, which refers to the Kind cluster name.
Cluster deletionΒΆ
To delete a Kind cluster, you can use the following command. Kind will also delete the kubeconfig of the deleted cluster. So you don't need to do this on your own.
Further informationΒΆ
More examples and tutorials regarding Proxmox can be found in the link list below:
- Creating an Ansible playbook to manage Kind cluster: Lightweight Kubernetes cluster using Kind and Ansible