How carlosmbteixeira/k8s-production-lab works
This repository automates a rebuildable Kubernetes lab: it creates local VMs, provisions their prerequisites, bootstraps a highly available cluster, then supports cluster services and application installs. The documented operator flow starts with lab management and continues through the pipeline; applications are selected one at a time because of the host RAM limit. The graph preserves documented networking, GitOps, TLS, observability, and policy capabilities. No source excerpts were available, so relationships below are limited to those stated in the README; unsampled implementation details are not inferred.
Main entry points: main.sh Install pipeline · site.yml Ansible provisioning · main.yml HA cluster bootstrap · lab-management.sh Lab management
Components 21
Host and VMs
- Windows host
- WSL2 Ubuntu
- Multipass VMs
- Lab management
scripts/lab-management.sh
Node Provisioning
- Install pipeline
scripts/pipeline/main.sh - Ansible provisioning
ansible/site.yml - Node prerequisites
ansible/roles/kernel-prereqs/tasks/main.yml - Container runtime
ansible/roles/containerd-install/tasks/main.yml
Cluster Bootstrap
- HA cluster bootstrap
ansible/roles/kubeadm-init/tasks/main.yml - Control-plane VIP
ansible/roles/kube-vip/tasks/main.yml - Calico networking
ansible/roles/cni-calico/tasks/main.yml
Cluster Services
- Gateway API and MetalLB
scripts/pipeline/03_gateway_api_metallb.sh - TLS certificates
kubernetes/manifests/cert_manager/clusterissuer.yaml - Network policies
kubernetes/manifests/network_policies/monitoring.yaml
Applications and Access
- Argo CD GitOps
kubernetes/manifests/argocd/apps/root-app.yaml - Rancher
scripts/pipeline/05_rancher.sh - Metrics and dashboards
kubernetes/manifests/observability/values.yaml - Log aggregation
kubernetes/manifests/observability/loki-values.yaml - UI access
scripts/tunnels/argocd-tunnel.sh
Other components
- Lab operator
- GitOps manifests repo
Connections 21
- Lab operator → Lab management: runs rebuild
README.md - Windows host → WSL2 Ubuntu: hosts
README.md - WSL2 Ubuntu → Multipass VMs: runs
README.md - Lab management → Multipass VMs: builds VMs
README.md - Lab operator → Install pipeline: runs install
README.md - Install pipeline → Ansible provisioning: provisions nodes
README.md - Ansible provisioning → Node prerequisites: prepares nodes
README.md - Ansible provisioning → Container runtime: installs runtime
README.md - Install pipeline → HA cluster bootstrap: bootstraps cluster
README.md - HA cluster bootstrap → Control-plane VIP: uses VIP
README.md - HA cluster bootstrap → Calico networking: installs CNI
README.md - Install pipeline → Gateway API and MetalLB: sets up networking
README.md - Install pipeline → TLS certificates: installs cluster infra
README.md - Install pipeline → Network policies: applies policies
README.md - GitOps manifests repo → Argo CD GitOps: provides manifests
README.md - Install pipeline → Argo CD GitOps: installs application
README.md - Install pipeline → Rancher: installs application
README.md - Install pipeline → Metrics and dashboards: installs application
README.md - Metrics and dashboards → Log aggregation: integrates logs
README.md - Lab operator → UI access: opens UI tunnel
README.md - Gateway API and MetalLB → UI access: enables direct access
README.md