k8s-provisioner
A full Kubernetes lab on your laptop with one command: Istio, Keycloak OIDC, Vault, lab DNS with trusted TLS, and Prometheus, Grafana, Loki and Tempo with SLOs.
Kubernetes Lab Clusters. Simplified.
Provision complete Kubernetes clusters for learning and development with a single command.
What is k8s-provisioner?
A Go CLI that builds a Kubernetes lab on Vagrant/VirtualBox with a production-like stack already wired together: networking, service mesh, lab DNS with trusted TLS, identity and secrets, observability with SLOs, and autoscaling. Local LLMs are optional.
It is made for learning, development and testing in lab environments, on macOS, Linux and Windows.
Features
| Feature | Description |
|---|---|
| One command | vagrant up builds the whole cluster: 4 VMs and every add-on |
| Real hostnames, trusted TLS | Every web UI at https://<name>.lab.internal, published by ExternalDNS and signed by a lab CA your machine trusts |
| Identity and secrets | Keycloak OIDC for kubectl and Grafana SSO; HashiCorp Vault with one path per login, synced by the Vault Secrets Operator |
| Observability | Metrics, logs and traces correlated in Grafana, plus the k8s-lab dashboard and DNS SLOs with burn-rate alerts |
| Autoscaling | HPA, VPA and KEDA (event-driven, scale to zero) |
| Survives rebuilds | Vault and the lab DNS run on the storage node, outside the cluster |
Stack Included
| Component | Technology |
|---|---|
| OS | Debian 13 “Trixie” |
| Container Runtime | CRI-O 1.37 |
| Kubernetes | 1.37 |
| CNI | Calico 3.33 |
| LoadBalancer | MetalLB 0.16 |
| Service Mesh | Istio 1.31 + Kiali 2.33 |
| TLS | cert-manager 1.21 (lab CA) |
| Lab DNS | CoreDNS + etcd on the storage node, ExternalDNS 0.23 |
| Storage | NFS + Dynamic Provisioner |
| Identity Provider | Keycloak 26.8 (OIDC + SSO) + PostgreSQL 18 |
| Secrets | HashiCorp Vault (TLS) + Vault Secrets Operator |
| Monitoring | Prometheus 3.15 + Alertmanager + Grafana 13.2 + blackbox_exporter |
| Logging | Loki 3.7 + Grafana Alloy |
| Tracing | Grafana Tempo 3.1 + OpenTelemetry Collector |
| Autoscaling | HPA + VPA 1.8 + KEDA 2.21 |
| Kubernetes Explorer | Karpor (optional, disabled by default) |
| AI Backend | Ollama, local or cloud models (optional, disabled by default) |
Exact versions live in config.yaml under versions:.