mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-11-12 06:55:15 +00:00
feat: Add ArgoCD app-of-apps pattern for GitOps deployment automation
- Add telecom-platform-root Application manifest with automated sync policy - Configure source repository pointing to deployments/argocd/apps directory on main branch - Enable automated pruning and self-healing for continuous reconciliation - Add CreateNamespace and PrunePropagationPolicy=foreground sync options - Configure retry policy with 5 attempts, exponential backoff from 5s to 3m - Set destination to default Kubernetes cluster
This commit is contained in:
@@ -0,0 +1,31 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: telecom-platform-root
|
||||||
|
namespace: argocd
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: telecom-platform-root
|
||||||
|
app.kubernetes.io/component: gitops
|
||||||
|
app.kubernetes.io/part-of: telecom-platform
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://github.com/nutcas3/telecom-platform.git
|
||||||
|
targetRevision: main
|
||||||
|
path: deployments/argocd/apps
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: argocd
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- PrunePropagationPolicy=foreground
|
||||||
|
retry:
|
||||||
|
limit: 5
|
||||||
|
backoff:
|
||||||
|
duration: 5s
|
||||||
|
factor: 2
|
||||||
|
maxDuration: 3m
|
||||||
Reference in New Issue
Block a user