feat: bootstrap ArgoCD with app-of-apps pattern

This commit is contained in:
2026-07-01 19:35:06 +01:00
commit 0e3d07d720
6 changed files with 92 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: argo-cd
namespace: argo-cd
spec:
project: default
source:
repoURL: oci://ghcr.io/argoproj/argo-helm/argo-cd
targetRevision: 9.2.3
helm:
valuesObject:
redis-ha:
enabled: true
controller:
replicas: 1
server:
autoscaling:
enabled: true
minReplicas: 2
repoServer:
autoscaling:
enabled: true
minReplicas: 2
applicationSet:
replicas: 2
destination:
server: https://kubernetes.default.svc
namespace: argo-cd
syncPolicy:
automated:
prune: true
selfHeal: true
+18
View File
@@ -0,0 +1,18 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: root
namespace: argo-cd
spec:
project: default
source:
repoURL: git@git.jrdn.dev:JamesAllenby/homelab-platform.git
targetRevision: main
path: apps
destination:
server: https://kubernetes.default.svc
namespace: argo-cd
syncPolicy:
automated:
prune: true
selfHeal: true
+7
View File
@@ -0,0 +1,7 @@
# Default environment values
# These values are available in helmfile.yaml as {{ .Values }}
# Example:
# replicaCount: 1
# image:
# repository: nginx
# tag: latest
+16
View File
@@ -0,0 +1,16 @@
helmDefaults:
createNamespace: true
wait: true
timeout: 300
releases:
- name: argo-cd
namespace: argo-cd
chart: oci://ghcr.io/argoproj/argo-helm/argo-cd
version: 9.2.3
values:
- values/argo-cd.yaml
hooks:
- events: ["postsync"]
command: kubectl
args: ["apply", "-f", "apps/root.yaml"]
View File
+18
View File
@@ -0,0 +1,18 @@
redis-ha:
enabled: true
controller:
replicas: 1
server:
autoscaling:
enabled: true
minReplicas: 2
repoServer:
autoscaling:
enabled: true
minReplicas: 2
applicationSet:
replicas: 2