feat: initial homelab-gitops declarative structure (Terraform & ArgoCD)

This commit is contained in:
2026-11-02 17:01:29 -05:00
parent 9026f26242
commit 3aa7da5f31
35 changed files with 1200 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: homelab
namespace: infrastructure
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
description: "Snarfnet Homelab Core Services & Workloads"
sourceRepos:
- "https://git.snarfnet.net/Snarf/homelab-gitops.git"
- "http://gitea-http.infrastructure.svc.cluster.local:3000/Snarf/homelab-gitops.git"
destinations:
- namespace: "*"
server: "https://kubernetes.default.svc"
- namespace: "*"
server: "https://140.44.4.11:6443"
clusterResourceWhitelist:
- group: "*"
kind: "*"
namespaceResourceWhitelist:
- group: "*"
kind: "*"

View File

@@ -0,0 +1,30 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: root-app-of-apps
namespace: infrastructure
labels:
app.kubernetes.io/name: root-app-of-apps
annotations:
notifications.argoproj.io/subscribe.on-sync-failed.gotify: ""
notifications.argoproj.io/subscribe.on-health-degraded.gotify: ""
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: homelab
source:
repoURL: "https://git.snarfnet.net/Snarf/homelab-gitops.git"
targetRevision: HEAD
path: argocd/bootstrap
directory:
recurse: true
destination:
server: "https://kubernetes.default.svc"
namespace: infrastructure
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true