In Norse mythology, Yggdrasil is the immense world tree whose branches and roots connect the Nine Worlds and hold the cosmos together.
Important
The canonical repository is hosted on a self-hosted Forgejo instance and push-mirrored to GitHub. The GitHub copy is read-only — changes pushed there (commits, PRs, edits) will not be persisted and will be overwritten by the next mirror sync.
GitOps configuration for my Kubernetes infrastructure. A single repository drives three Kubernetes clusters through Argo CD using an app-of-apps / hub-and-spoke topology.
Argo CD runs on the homelab cluster (the hub) and manages all three
Argo-managed clusters as spokes:
| Cluster | Role |
|---|---|
homelab |
Hub — hosts Argo CD, Vault, and most workloads |
cloud |
Spoke — internet-facing / cloud-hosted workloads |
home-assistant |
Spoke — Home Assistant and related integrations |
Each cluster is registered in Argo CD as a cluster secret
(argocd.argoproj.io/secret-type: cluster). Clusters run Talos on Proxmox;
networking is Cilium + the Gateway API.
Argo CD manages itself from this repository. The root of the tree is
bootstrap/apps.yaml, an Application applied once by hand with kubectl. It
renders the bootstrap/argocd Helm chart onto the hub, which contains:
argocd: the Argo CD installation itself (upstreamargo-cdchart), so Argo CD upgrades and config changes go through Git like everything else.AppProjects:argocd,app-of-apps,k8s-platform,foundry,home-assistant.- Repository secrets and the ExternalSecrets for OIDC and OCI registry credentials.
- Root
Applications:platform(this repo's root directory),foundry(homelab/asgard), androot-home-assistant(homelab/midgard).
platform syncs the two ApplicationSets at the repo root, which use Argo CD's
cluster generator to fan out over every registered cluster. For a cluster
named <cluster> they template one Application per cluster, sourced from
<cluster>/…:
namespace-bootstraper.yaml(sync-wave0) — deploys<cluster>/namespacesto the spoke itself (destination.server: {{ server }}). Namespaces exist before anything lands in them.application-bootstraper.yaml(sync-wave1) — deploys<cluster>/applications. TheseApplicationobjects are created on the hub (destination.name: homelab), which is where Argo CD reconciles them; each individualApplicationthen targets its own destination cluster.
So the flow is:
bootstrap/apps.yaml (kubectl apply, once)
└─ bootstrap/argocd → Argo CD, AppProjects, repos, root Applications
└─ platform → ApplicationSets at the repo root
└─ <cluster>/applications/*.yaml → Application (Helm chart or in-repo manifests)
└─ actual workloads on the target cluster
bootstrap/
├── apps.yaml # root Application, applied manually
└── argocd/ # Helm chart: Argo CD, AppProjects, repos, root Applications
<cluster>/ # one directory per cluster: cloud, home-assistant, homelab
├── applications/ # Argo CD Application definitions (the app-of-apps layer)
│ ├── <name>.cd.yaml # the workload — usually a Helm chart with inline valuesObject
│ └── <name>-resources.yaml # companion App: directory-recurse over <cluster>/<name>/
├── namespaces/ # Namespace objects, deployed first (sync-wave 0)
├── cluster-scoped/ # cluster-wide resources: RBAC, ClusterSecretStores, policies
└── <name>/ # supporting manifests for an app (ExternalSecrets,
# ConfigMaps, HTTPRoutes, Postgres clusters, backups, …)
*.cd.yaml— an Argo CDApplication, typically a Helm release configured entirely throughspec.source.helm.valuesObject.*-resources.yaml— anApplicationthat recurses a directory of plain manifests (directory.recurse: true) providing the app's supporting resources.- Every workload
Applicationin<cluster>/applications/runs under thek8s-platformAppProject, defined inbootstrap/argocd.
No secret material is committed. Secrets are synced at runtime by
External Secrets Operator from HashiCorp Vault
via the vault-backend-platform ClusterSecretStore. Application manifests
reference the generated Kubernetes secrets by name (existingSecret…).
- Renovate keeps Helm charts, container images, and CI actions current.
Image tags carry
# renovate:comments so digests/versions stay pinned and auditable. Config extends the sharedrenovate/configpreset. - CI (
.forgejo/workflows/pr.yaml) runsyamllinton every PR againstmain/release/**. Actions are pinned by commit SHA with a defaultpermissions: {}. - pre-commit enforces yamllint plus trailing-whitespace / EOF / YAML checks
locally — install with
pre-commit install.
Manual prerequisites for a from-scratch rebuild of the hub:
- An initial Argo CD install on the
homelabcluster (e.g.helm installof the upstream chart intoargocd). TheargocdApplicationadopts and takes over that release on first sync. - Cluster secrets registering
cloud,home-assistant, andhomelab(not tracked in this repo). - A reachable Vault with the platform secrets populated. The
vault-backend-platformClusterSecretStoreand External Secrets Operator come from the tree itself, so the ExternalSecrets inbootstrap/argocd(OIDC, OCI credentials) only resolve once those have synced.
Then apply the root:
kubectl apply -f bootstrap/apps.yamlArgo CD reconciles the rest of the tree from there.
MIT — see LICENSE.