feat: bootstrap ArgoCD with app-of-apps pattern
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -0,0 +1,7 @@
|
||||
# Default environment values
|
||||
# These values are available in helmfile.yaml as {{ .Values }}
|
||||
# Example:
|
||||
# replicaCount: 1
|
||||
# image:
|
||||
# repository: nginx
|
||||
# tag: latest
|
||||
@@ -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"]
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user