Local development environment for OpenKubes — two separate K3s clusters running in Multipass VMs on your Mac, simulating the production architecture with KubeVirt for VM workloads.
Mac (Multipass host)
├── ok-mgmt-local — Management cluster (CAPI, Crossplane, Argo CD)
└── ok-infra-local — Workload cluster (KubeVirt, CDI)
Prefer to watch before you try it? These three videos complement the written tutorials below. Open a thumbnail to watch on YouTube.
| Video 1 | Video 2 | Video 3 |
|---|---|---|
![]() |
![]() |
![]() |
| Watch video 1 | Watch video 2 | Watch video 3 |
For current commands and prerequisites, follow the Quick Start and the written tutorials; video recordings may reflect an earlier revision.
# Prerequisites: Multipass + kubectl installed (see docs/tutorial-prerequisites.md)
git clone https://github.com/openkubes/ok-local
cd ok-local
# Launch both VMs, install K3s on each, install KubeVirt — all in one command
make setupAfter ~10 minutes:
# Set aliases in ~/.zshrc
alias oml="export KUBECONFIG=$(pwd)/.tunnel-mgmt.kubeconfig"
alias oil="export KUBECONFIG=$(pwd)/.tunnel-infra.kubeconfig"
oml && kubectl get nodes # ok-mgmt-local Ready
oil && kubectl get nodes # ok-infra-local ReadyMac (Multipass host)
├── ok-mgmt-local (192.168.x.x) localhost:6443
│ └── K3s v1.35 — management cluster
│ ├── CAPI + CAPK (Tutorial 3)
│ ├── Crossplane (Tutorial 4)
│ └── Argo CD (Tutorial 5, coming soon)
│
└── ok-infra-local (192.168.x.y) localhost:6444
└── K3s v1.35 — workload cluster
└── KubeVirt v1.8 + QEMU software emulation
| Local | Production | Role |
|---|---|---|
ok-mgmt-local |
ok1, ok2, ok3 (Hetzner) |
Management plane |
ok-infra-local |
ok-infra (Hetzner AX42-U) |
VM workload plane |
ok-gpu-local (future) |
ok-gpu (Hetzner GEX44) |
GPU node |
| Tutorial | Description |
|---|---|
| Tutorial 0 — Prerequisites | Install Multipass, kubectl, set up SSH key and aliases |
| Tutorial 1 — Management Cluster | Launch ok-mgmt-local, install K3s, configure kubectl access |
| Tutorial 2 — Workload Cluster | Launch ok-infra-local, install K3s + KubeVirt |
| Tutorial 3 — CAPI on ok-mgmt-local | Install CAPI + CAPK, manage VMs from the management cluster |
| Tutorial 4 — Crossplane on ok-mgmt-local | Install Crossplane, deploy Helm releases and K8s resources on ok-infra-local |
| OpenRMF on Multipass through Crossplane | Deploy OpenRMF to ok-infra-local from Crossplane on ok-mgmt-local |
| KubeVirt on macOS (standalone) | Run a VM inside Kubernetes on your Mac — no OpenKubes required |
make setup # Full setup: both VMs + K3s + KubeVirt
make clean # Delete everything and start fresh
make up-mgmt # Launch ok-mgmt-local VM
make up-infra # Launch ok-infra-local VM
make install-k3s-mgmt # Install K3s on management cluster
make install-k3s-infra # Install K3s on workload cluster
make install-kubevirt # Install KubeVirt on workload cluster
make nodes-mgmt # Show nodes in management cluster
make nodes-infra # Show nodes in workload cluster
make nodes-all # Show nodes in both clusters
make tunnel # Start SSH tunnel for mgmt (localhost:6443)
make tunnel-infra # Start SSH tunnel for infra (localhost:6444)
make tunnels # Start both tunnels
make ssh-mgmt # SSH into ok-mgmt-local
make ssh-infra # SSH into ok-infra-local
make status # Show all Multipass VMs
make help # Show all available targets- openkubes/ok-rke2 — Production stack on Hetzner bare metal
- openkubes/ok-linux — Linux node configuration
- KubeVirt documentation
- K3s documentation
| Tutorial | Status | Description |
|---|---|---|
| Tutorial 0 — Prerequisites | ✅ Done | Mac setup, Multipass, kubectl, aliases |
| Tutorial 1 — Management Cluster | ✅ Done | ok-mgmt-local, K3s, SSH tunnel |
| Tutorial 2 — Workload Cluster | ✅ Done | ok-infra-local, K3s, KubeVirt |
| Tutorial 3 — CAPI | ✅ Done | CAPI + CAPK, VM lifecycle from mgmt |
| Tutorial 4 — Crossplane | ✅ Done | provider-kubernetes + provider-helm |
| Tutorial 5 — Argo CD | 🗺️ Planned | GitOps delivery on ok-mgmt-local |
| Tutorial 6 — CAPI Workload Cluster | 🗺️ Planned | Full K8s cluster via CAPK + kubeadm |
| Tutorial 7 — ok-gpu-local | 🗺️ Planned | GPU node simulation with Multipass |


