Skip to content

Short intro to K3d. Spin up a kubernetes cluster on your local machine or VM in minutes, using the command, template or terraform deployment!

Notifications You must be signed in to change notification settings

dxsim/k3d-starting-template

Repository files navigation

K3D cluster setup

Setup


  1. Install k3d CLI (https://k3d.io/#installation)
  2. export KUBECONFIG=$PWD/kubeconfig.yaml

Cluster creation


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

List all available clusters


kubectl config get-contexts

Check Kubernetes pods/nodes


kubectl get pods -A
kubectl get nodes
docker container ls

Deleting clusters


k3d cluster delete my-cluster

About

Short intro to K3d. Spin up a kubernetes cluster on your local machine or VM in minutes, using the command, template or terraform deployment!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages