Vcloud Lab iconVcloud LabSep 27, 2026 ~6 min source read

How to install KIND and run a local Kubernetes cluster on Ubuntu

A practical walkthrough of the steps used in a home lab to get Kubernetes running quickly with KIND (Kubernetes IN Docker), focusing on Ubuntu, Docker, and initial cluster creation.

How to Install KIND and Create a Local Kubernetes Cluster - Step by Step

Share this story

Send the public story page.

Useful takeaways from this story.

KIND runs Kubernetes clusters as Docker containers, making it faster and lighter than spinning up multiple VMs.

After Docker is working, install KIND and configure kubectl to talk to the new local cluster to begin testing workloads.

KIND (Kubernetes IN Docker) creates Kubernetes clusters as Docker containers on a single host. In a home lab where you want fast, disposable clusters without multiple VMs or cloud costs, KIND is described as faster and cleaner than alternatives tried by the author (minikube and k3s).

  • Prepare Ubuntu: update and upgrade packages. On minimized Ubuntu builds you may need to install small utilities that are not present by default.
  • Install Docker using the distro packages (apt-get docker.io in the author's build).
  • Install KIND and kubectl, then create a cluster. Configure kubectl to use the cluster's kubeconfig and validate the control plane.

The author used a lightweight, minimized Ubuntu Server image. Before installing anything, run a package update and upgrade using apt-get. Because minimized images often lack commonly used utilities, the author installed a few extra packages (examples include util-linux-extra and vim) to make administration easier.

Commands used (as given in the source)

  • sudo apt-get update
  • sudo apt-get upgrade -y
  • sudo apt-get install -y

The article uses the distribution package to install Docker. The command shown is:

  • sudo apt-get install -y docker.io

On the author's system this pulled a set of dependencies commonly required for container hosts (containerd, runc, iptables, nftables and related packages). Expect the install to download tens of megabytes and to allocate additional disk space for container runtime components.

After Docker is installed and functioning, the next step is to install KIND and configure kubectl so you can interact with the cluster. The author states they installed KIND, set up kubectl, and created a first local Kubernetes cluster for lab testing on Ubuntu. The article's narrative describes creation of a cluster and connecting kubectl to it but does not print the exact commands in the supplied excerpt.

What to verify after cluster creation

  • Docker containers for the control plane and nodes are running on the host.
  • kubectl is configured to use the KIND cluster kubeconfig.
  • Basic Kubernetes primitives (nodes, pods) report expected statuses when you query the cluster.
  • Using a minimized Ubuntu image required installing a few extra utilities before proceeding. Plan for small missing dependencies on trimmed images.
  • KIND was chosen because it made spinning up a disposable cluster fast and clean compared with alternatives the author tried.

Next steps once the cluster is live

  • Deploy a simple test workload to confirm network connectivity and pod lifecycle.
  • Practice cluster teardown and recreation to understand KIND workflow for iterative testing in a lab.

For a home lab that needs fast Kubernetes test environments without multiple VMs or cloud costs, KIND on Docker is a practical option. Start by updating a minimized Ubuntu server, install necessary utilities, install Docker (docker.io via apt-get in the author's example), then install KIND, configure kubectl, and create your first local cluster to begin testing.

More context around this story.

Kubernetes просто, часть 1: зачем Kubernetes, устройство кластера
Habr iconHabrSep 14, 2026

Kubernetes просто, часть 1: зачем Kubernetes, устройство кластера

Kubernetes без магии и заучивания команд. Разберёмся, зачем он вообще нужен, как устроен кластер, чем Control Plane отличается от Worker Nodes и какую роль играют Pod, Scheduler, kubelet, etcd и другие основные компоненты . Читать далее

Loading more related stories...

Keep reading in the app

Open the app view to save this story, compare related coverage, and continue from the same source.

Open in app