mirror of
https://github.com/ghndrx/homelab-gitops.git
synced 2026-02-10 06:44:57 +00:00
feat: add ArgoCD bootstrap with ApplicationSet pattern
- Add root ApplicationSet using Git Directory Generator - Configure AppProjects for infrastructure and apps separation - Add cert-manager with Let's Encrypt ClusterIssuers (staging/prod) - Add SOPS configuration for age-encrypted secrets - Add bootstrap documentation (docs/BOOTSTRAP.md) - Scaffold infrastructure dirs (networking, storage, monitoring) - Update README with quick start and architecture GitOps pattern: directories auto-discovered by ArgoCD ApplicationSets Reference: CNCF App-of-Apps best practices 2025
This commit is contained in:
49
clusters/defiant/projects.yaml
Normal file
49
clusters/defiant/projects.yaml
Normal file
@@ -0,0 +1,49 @@
|
||||
# clusters/defiant/projects.yaml
|
||||
# ArgoCD AppProjects for access control and grouping
|
||||
---
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: AppProject
|
||||
metadata:
|
||||
name: infrastructure
|
||||
namespace: argocd
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
description: Core cluster infrastructure (networking, storage, monitoring)
|
||||
sourceRepos:
|
||||
- 'https://github.com/ghndrx/homelab-gitops.git'
|
||||
- 'https://charts.jetstack.io'
|
||||
- 'https://prometheus-community.github.io/helm-charts'
|
||||
- 'https://grafana.github.io/helm-charts'
|
||||
destinations:
|
||||
- namespace: '*'
|
||||
server: https://kubernetes.default.svc
|
||||
clusterResourceWhitelist:
|
||||
- group: '*'
|
||||
kind: '*'
|
||||
namespaceResourceWhitelist:
|
||||
- group: '*'
|
||||
kind: '*'
|
||||
---
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: AppProject
|
||||
metadata:
|
||||
name: apps
|
||||
namespace: argocd
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
description: User-facing applications
|
||||
sourceRepos:
|
||||
- 'https://github.com/ghndrx/homelab-gitops.git'
|
||||
destinations:
|
||||
- namespace: 'prod-*'
|
||||
server: https://kubernetes.default.svc
|
||||
- namespace: 'dev-*'
|
||||
server: https://kubernetes.default.svc
|
||||
clusterResourceWhitelist:
|
||||
- group: ''
|
||||
kind: Namespace
|
||||
namespaceResourceWhitelist:
|
||||
- group: '*'
|
||||
kind: '*'
|
||||
Reference in New Issue
Block a user