Create virtual machines backed Kubernetes clusters on your laptop with a single command.
One command to create clusters: sudo vmkube up
One command to destroy clusters: sudo vmkube down
vmkube uses virt-install and talosctl under the hood. It creates virtual machines for control plane and worker nodes, sets up isolated networking, installs Talos Linux on each VM, bootstraps Kubernetes clusters, and provides kubeconfig for immediate access. When you're done, one command removes all VMs, networks, and disks.
It was tested on Linux, specifically debian-based distributions. It could work on other Linux distributions as well.
sudo apt update
sudo apt install -y \
qemu-kvm qemu-utils \
libvirt-daemon-system libvirt-clients \
virtinst \
systemd-timesyncd \
curl \
docker.iosudo systemctl enable --now libvirtdcurl -sL https://talos.dev/install | shcurl -OL "https://raw.githubusercontent.com/digitalstudium/vmkube/refs/heads/main/vmkube" && sudo install ./vmkube /usr/local/bin/vmkube && rm -f ./vmkubevmkube initconfigit will create ~/.config/vmkube.toml file with default configuration.
Review and modify it if necessary.
sudo vmkube upAfter creation, access Kubernetes with:
export KUBECONFIG=~/.kube/vmkube
kubectl config get-contexts
kubectl config use-context admin@vmkube-1
kubectl get nodessudo vmkube downPRs and issues are welcomed!