/k3d

K3D testing with simple examples

Primary LanguageGoMIT LicenseMIT

K3D Demo

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

Install instructions

Create cluster

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