k3d is a lightweight wrapper to run k3s (Rancher Lab’s minimal Kubernetes distribution) in docker.
k3d makes it very easy to create single- and multi-node k3s clusters in docker, e.g. for local development on Kubernetes
When running the below command from the project root folder, a 1 server, 4 agent k3s cluster will be created on your local machine.
$ k3d cluster create --config k3d.yaml
Test the state of the cluster by running this command
$ kubectl get nodes
List available clusters
$ k3d cluster list
Destroy / Delete the cluster using the following command
$ k3d cluster delete MyAwesomeCluster