Containers

Run Kubernetes locally with kind

A real Kubernetes cluster running inside Docker on your own machine, for testing.

  1. Install kind
    Terminal
    brew install kind

    Needs Docker running, and kubectl to talk to the cluster.

  2. Create a cluster
    Terminal
    kind create cluster

Check it worked

  1. Check the cluster is up
    Terminal
    kubectl cluster-info --context kind-kind
Undo it
  1. Delete the cluster
    Terminal
    kind delete cluster
  1. Install kindNeeds sudo
    Terminal · Ubuntu / Debian
    curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.30.0/kind-linux-amd64
    chmod +x ./kind
    sudo mv ./kind /usr/local/bin/kind

    On an ARM machine, change amd64 to arm64. Needs Docker running, and kubectl to talk to the cluster.

  2. Create a cluster
    Terminal · Ubuntu / Debian
    kind create cluster

Check it worked

  1. Check the cluster is up
    Terminal · Ubuntu / Debian
    kubectl cluster-info --context kind-kind
Undo it
  1. Delete the cluster
    Terminal · Ubuntu / Debian
    kind delete cluster
  1. Install kind
    PowerShell
    winget install Kubernetes.kind

    Needs Docker Desktop running, and kubectl to talk to the cluster. Close and reopen PowerShell afterwards.

  2. Create a cluster
    PowerShell
    kind create cluster

Check it worked

  1. Check the cluster is up
    PowerShell
    kubectl cluster-info --context kind-kind
Undo it
  1. Delete the cluster
    PowerShell
    kind delete cluster