feat: initial homelab-gitops declarative structure (Terraform & ArgoCD)
This commit is contained in:
23
argocd/bootstrap/argocd-project.yaml
Normal file
23
argocd/bootstrap/argocd-project.yaml
Normal 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: "*"
|
||||
30
argocd/bootstrap/root-app-of-apps.yaml
Normal file
30
argocd/bootstrap/root-app-of-apps.yaml
Normal 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
|
||||
Reference in New Issue
Block a user