- Install
k3d
CLI (https://k3d.io/#installation) export KUBECONFIG=$PWD/kubeconfig.yaml
Three seperate ways to deploy your k3d cluster
-
Create using the basic k3d command
k3d cluster create my-cluster
-
Or use a config file
k3d cluster create --config k3d.yaml
-
Or use terraform deployment
terraform init
terraform apply
-
Destroy terraform deployment
terraform destroy
kubectl config get-contexts
kubectl get pods -A
kubectl get nodes
docker container ls
k3d cluster delete my-cluster