Skip to content
项目

关于

A mono repository for my homelab infrastructure and Kubernetes cluster which adheres to Infrastructure as Code (IaC) and GitOps practices where possible

系统与基础设施

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

🏠 Home Lab

💡 Overview

This mono repository houses the infrastructure for my homelab. I try to adhere to Infrastructure as Code (IaC) and GitOps practices using tools like Ansible, Terraform, Kubernetes, Flux, Renovate and GitHub Actions.

📦 Layout

📁 bootstrap       # One-time cluster bootstrap (helmfile + kustomize)
📁 kubernetes      # Everything Flux reconciles
├─📁 apps          # The catalogue, grouped by namespace
└─📁 clusters      # One directory per cluster
  └─📁 home
    ├─📁 entrypoint  # The FluxInstance and the root Kustomization
    ├─📁 apps        # What this cluster runs: <namespace>/<app>/ks.yaml
    └─📁 config      # The values this cluster supplies to the catalogue
      ├─📁 namespaces # The Namespaces this cluster creates
      └─📁 secrets   # SOPS, only what is needed before the secret store is up
📁 talos           # Talos machine configs and per-node overrides
📁 terraform       # Providers that live outside the cluster

⚙️ GitOps workflow

A cluster declares what it runs in clusters/<name>/apps, one Flux Kustomization per app, and apps/ stays a catalogue that knows nothing about which cluster consumes it.

  1. The FluxInstance syncs clusters/home/entrypoint, where the root Flux Kustomization lives.
  2. That applies the rest of clusters/home — the Namespaces and SOPS secrets under config/ and the per-app Kustomizations under apps/.
  3. A Kustomize patch in the cluster root injects the shared defaults (interval, prune, SOPS, substitutions, HelmRelease policy) into every one of them, so each ks.yaml only states name, path and its real deviations.
  4. Each of those applies apps/<namespace>/<app>, waiting on whatever its dependsOn names.
GitOps workflow

⏳ Changelog

See my awful commit main history and legacy history

🤝 Gratitude and thanks

Thanks all the people of Home Operations Discord community who put a lot of effort and donate their time to the community.

⚖️ License

See LICENSE v.g WTF License

探索相关项目

加载中…