How khuedoan/homelab works
Khue’s Homelab is an Infrastructure-as-Code and GitOps framework for provisioning and operating self-hosted services across staging and production. The documented workflow starts with bare-metal/PXE provisioning, installs and manages Kubernetes, then deploys applications and platform services through GitOps. Separate branches cover networking, identity and secrets, storage and backups, observability, and CI. Script excerpts show Forgejo and Kanidm configuration using OpenBao; other subsystem links reflect README-level capabilities, not inspected implementation details.
Main entry points: platform Platform services · staging Staging and production · main.tf Argo CD GitOps · dns DNS management
Components 20
Infrastructure provisioning
- Staging and production
infra/staging - Bare-metal PXE
infra/src/modules/metal/flake - Kubernetes enrollment
infra/src/modules/cluster/cluster.py - DNS management
infra/src/modules/dns - Internet exposure
infra/src/modules/tunnel
Cluster and GitOps
- Argo CD GitOps
infra/src/modules/argocd/main.tf
Platform services
- Platform services
infra/src/modules/platform - Certificate management
infra/src/modules/platform/cert_manager.tf - Cluster networking
infra/src/modules/platform/istio.tf - Distributed storage
infra/src/modules/platform/rook_ceph.tf - Backup and restore
infra/src/modules/backup/main.tf - Monitoring and alerts
infra/src/modules/platform/monitoring_system.tf - VPN access
infra/src/modules/platform/tailscale.tf
Identity and secrets
- SSO configuration
infra/src/scripts/sso.py - User administration
infra/src/scripts/user.py - OpenBao secrets
infra/src/scripts/openbao.py
Applications and operations
- Forgejo and CI
infra/src/scripts/forgejo.py - Self-hosted applications
apps
Other components
- Homelab operator
- Cloudflare
Connections 22
- Homelab operator → Staging and production: configures
- Staging and production → Bare-metal PXE: provisions
- Bare-metal PXE → Kubernetes enrollment: installs cluster
- Staging and production → DNS management: configures
- Staging and production → Internet exposure: configures
- Kubernetes enrollment → Argo CD GitOps: enables GitOps
- Argo CD GitOps → Self-hosted applications: deploys
- Argo CD GitOps → Platform services: deploys
- Platform services → Certificate management: provides certificates
- Platform services → Cluster networking: provides networking
- Platform services → Distributed storage: provides storage
- Platform services → Backup and restore: provides backups
- Platform services → Monitoring and alerts: provides observability
- Platform services → VPN access: provides VPN
- Platform services → Internet exposure: exposes services
- Platform services → DNS management: updates records
- Forgejo and CI → OpenBao secrets: reads and writes
infra/src/scripts/forgejo.py - SSO configuration → OpenBao secrets: reads and writes
infra/src/scripts/sso.py - User administration → SSO configuration: administers users
infra/src/scripts/user.py - User administration → OpenBao secrets: opens connection
infra/src/scripts/user.py - DNS management → Cloudflare: updates DNS
- Internet exposure → Cloudflare: uses tunnel