How ahinko/home-ops works
• Git Repository (Configuration Source): Represent the repository as the “single source of truth.” This is where all the declarative configurations (Kubernetes manifests, Helm charts, Kustomizations, Taskfiles, Ansible playbooks) are stored.
• GitOps Pipeline: Include components such as Flux and Renovate. Flux monitors changes in the repository and applies them to the Kubernetes cluster, while Renovate automates dependency updates.
• Kubernetes Cluster: This is the core runtime environment for the homelab. Within the cluster, note that there is an extensive organization of “apps” (e.g., cert-manager, databases, media, downloads, observability, selfhosted services, etc.) arranged by directories.
• Underlying Infrastructure & Provisioning:
• Talos: The operating system for the Kubernetes nodes, with scripts and Taskfiles for automatic OS and cluster updates.
• Ansible: Used for provisioning non-Kubernetes components and additional hardware (backup servers, pikvm, etc.).
• Taskfiles & Custom Scripts: These handle repetitive tasks and orchestrate parts of the provisioning or maintenance processes.
• External/Non-Kubernetes Services: Include Docker containers running on a NAS that complement the Kubernetes services.
• Inside the Kubernetes Cluster, divide the space into sub-sections according to application categories (e.g., “Home Automation,” “Downloads,” “Databases,” “Observability,” “Selfhosted,” and “Networking/Storage”). This mirrors the vast directory structure under “kubernetes/apps/”.
• A separate block to represent “Infrastructure Provisioning & Management” which contains:
• Talos (node provisioning and updates)
• Ansible (hardware provisioning, configuration management for non-cluster systems)
• Taskfiles/Scripts (manual/automation tools)
• Directional data flows or control flows where:
• The Git repository feeds into both GitOps (Flux) and CI/CD pipelines (GitHub Actions).
• The CI/CD section triggers Talos updates and manages node provisioning.
• Ansible and Taskfiles operate on the non-Kubernetes or peripheral hardware elements.
Architectural patterns and design principles
• GitOps Pattern: Emphasize that the repository is the source of truth and that Flux continuously reconciles the declared state with the cluster state.
• Infrastructure as Code (IaC): Note the use of declarative Kubernetes manifests, Helm releases, and kustomizations, as well as Ansible playbooks.
• Modularity: The structure is very modular. Each domain (such as databases, media, networking, and security) is organized under its dedicated directory in the Kubernetes configuration, encapsulating domain-specific configuration.
• Automation & Continuous Delivery: Use of Renovate for dependency management, pre-commit hooks, GitHub workflows, and repeated Taskfile tasks illustrates a high degree of automation.
Relevant technologies, frameworks, and tools
• Kubernetes (with GitOps using Flux)
• Talos (lightweight OS for cluster nodes)
• Ansible (for hardware provisioning and non-Kubernetes configurations)
• Taskfile (for executing repetitive tasks and scripts)
• GitHub Actions/Workflows, Renovate (for continuous updates and automation)
• Helm/Kustomize (for templating and deploying Kubernetes manifests)
• Various application stacks (cert-manager, databases like Cloudnative-PG, Prometheus/Grafana for observability, and more)