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.

k8s-provisioner logo

Kubernetes Lab Clusters. Simplified.

Provision complete Kubernetes clusters for learning and development with a single command.

Get Started GitHub


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

FeatureDescription
One commandvagrant up builds the whole cluster: 4 VMs and every add-on
Real hostnames, trusted TLSEvery web UI at https://<name>.lab.internal, published by ExternalDNS and signed by a lab CA your machine trusts
Identity and secretsKeycloak OIDC for kubectl and Grafana SSO; HashiCorp Vault with one path per login, synced by the Vault Secrets Operator
ObservabilityMetrics, logs and traces correlated in Grafana, plus the k8s-lab dashboard and DNS SLOs with burn-rate alerts
AutoscalingHPA, VPA and KEDA (event-driven, scale to zero)
Survives rebuildsVault and the lab DNS run on the storage node, outside the cluster

Stack Included

ComponentTechnology
OSDebian 13 “Trixie”
Container RuntimeCRI-O 1.37
Kubernetes1.37
CNICalico 3.33
LoadBalancerMetalLB 0.16
Service MeshIstio 1.31 + Kiali 2.33
TLScert-manager 1.21 (lab CA)
Lab DNSCoreDNS + etcd on the storage node, ExternalDNS 0.23
StorageNFS + Dynamic Provisioner
Identity ProviderKeycloak 26.8 (OIDC + SSO) + PostgreSQL 18
SecretsHashiCorp Vault (TLS) + Vault Secrets Operator
MonitoringPrometheus 3.15 + Alertmanager + Grafana 13.2 + blackbox_exporter
LoggingLoki 3.7 + Grafana Alloy
TracingGrafana Tempo 3.1 + OpenTelemetry Collector
AutoscalingHPA + VPA 1.8 + KEDA 2.21
Kubernetes ExplorerKarpor (optional, disabled by default)
AI BackendOllama, local or cloud models (optional, disabled by default)

Exact versions live in config.yaml under versions:.