FAQ
General
What is k8s-provisioner?
A CLI written in Go that builds a Kubernetes lab on Vagrant/VirtualBox and installs a complete stack: networking, service mesh, lab DNS with trusted TLS, Keycloak, Vault, observability with SLOs, and autoscaling.
What platforms are supported?
The host can be macOS (Intel and Apple Silicon), Linux (x64 and ARM64) or Windows (x64). The VMs run Debian 13 “Trixie”.
How much RAM do I need?
The VMs use 20 GB by default (storage 2 GB, controlplane 6 GB, node01 8 GB, node02 4 GB), so a 32 GB host is recommended. Karpor and Ollama are off by default; if you will not enable them, lower node01 to 4 GB and the VMs use 16 GB.
Is it production-ready?
No. It uses production components, but it is a lab: self-managed CAs, NFS storage without redundancy, no backups. See Architecture → Security posture.
Kubernetes
What Kubernetes version is used?
Kubernetes 1.37 with CRI-O 1.37. Both are set in config.yaml (versions.kubernetes, versions.crio).
Can I change the number of nodes?
Yes: add or remove VMs in vagrant/settings.yaml and the matching entries in config.yaml nodes: (same names and IPs).
How do I access the cluster from my host?
vagrant ssh controlplane -c 'sudo cat /etc/kubernetes/admin.conf' > ~/.kube/config-lab
export KUBECONFIG=~/.kube/config-lab
kubectl get nodes
The kubeconfig already points at https://192.168.56.10:6443. For per-user logins through Keycloak, see OIDC login.
Lab URLs and DNS
Why lab.internal and not .local?
.local is reserved for multicast DNS (Bonjour/Avahi), so macOS and Linux treat it specially and lookups get slow or fail. .internal is reserved for private use and resolves normally through the lab DNS.
Do I need to edit /etc/hosts?
No. ExternalDNS publishes every Gateway host to the DNS server on the storage node, and a one-time resolver rule on your machine sends lab.internal there. See Host Setup.
Why do I have to trust a CA?
Every lab URL is HTTPS with a certificate from the lab CA. Keycloak and Grafana send HSTS, so Chromium browsers refuse to bypass an untrusted certificate. vagrant up prints the commands to trust it.
I recreated the lab and now get certificate errors
vagrant destroy + vagrant up creates new CAs. Re-run the host setup commands and fetch the kubeconfigs again: see After recreating the lab.
Components
Why Calico instead of Flannel?
Calico supports network policies and is common in production clusters.
Why CRI-O instead of containerd?
CRI-O is a lightweight runtime built only for Kubernetes. Both work well.
Can I disable components?
Yes, set them to none in config.yaml components: (monitoring, logging, tracing, keycloak, vpa, keda, external_dns, karpor). Istio can be none too, but every web UI is published through its ingress gateway.
Where are the passwords?
In Vault, one path per login (secret/k8s-provisioner/grafana/admin, …/keycloak/admin, …). See Vault.
How do I enable Karpor and the AI features?
components:
karpor: "enabled"
karpor_ai:
enabled: true
Ollama is installed automatically with a local model (llama3.2:3b). Keep node01 at 8 GB.
Kubectl Aliases
These aliases are preconfigured in all VMs:
alias k=kubectl
alias kgp='kubectl get pods'
alias kgs='kubectl get svc'
alias kgn='kubectl get nodes'
alias kga='kubectl get all'
alias kgaa='kubectl get all -A'
alias kd='kubectl describe'
alias kl='kubectl logs'
alias kx='kubectl exec -it'
alias ka='kubectl apply -f'
alias kdel='kubectl delete -f'
alias kn='kubectl config set-context --current --namespace'
# Dry-run helper
export do='--dry-run=client -o yaml'
kubectl run nginx --image=nginx $do > nginx.yaml