diff --git a/deployments/argocd/apps/telecom-platform-dev.yaml b/deployments/argocd/apps/telecom-platform-dev.yaml new file mode 100644 index 0000000..f294009 --- /dev/null +++ b/deployments/argocd/apps/telecom-platform-dev.yaml @@ -0,0 +1,32 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: telecom-platform-dev + namespace: argocd + labels: + app.kubernetes.io/name: telecom-platform-dev + app.kubernetes.io/component: platform + app.kubernetes.io/environment: dev + app.kubernetes.io/part-of: telecom-platform +spec: + project: default + source: + repoURL: https://github.com/nutcas3/telecom-platform.git + targetRevision: main + path: deployments/environments/dev + destination: + server: https://kubernetes.default.svc + namespace: telecom-platform-dev + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + - PrunePropagationPolicy=foreground + retry: + limit: 5 + backoff: + duration: 5s + factor: 2 + maxDuration: 3m diff --git a/deployments/argocd/apps/telecom-platform-prod.yaml b/deployments/argocd/apps/telecom-platform-prod.yaml new file mode 100644 index 0000000..5b03648 --- /dev/null +++ b/deployments/argocd/apps/telecom-platform-prod.yaml @@ -0,0 +1,32 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: telecom-platform-prod + namespace: argocd + labels: + app.kubernetes.io/name: telecom-platform-prod + app.kubernetes.io/component: platform + app.kubernetes.io/environment: prod + app.kubernetes.io/part-of: telecom-platform +spec: + project: default + source: + repoURL: https://github.com/nutcas3/telecom-platform.git + targetRevision: main + path: deployments/environments/prod + destination: + server: https://kubernetes.default.svc + namespace: telecom-platform-prod + syncPolicy: + automated: + prune: false # Manual sync for production + selfHeal: false + syncOptions: + - CreateNamespace=true + - PrunePropagationPolicy=foreground + retry: + limit: 3 + backoff: + duration: 10s + factor: 2 + maxDuration: 5m diff --git a/deployments/argocd/apps/telecom-platform-staging.yaml b/deployments/argocd/apps/telecom-platform-staging.yaml new file mode 100644 index 0000000..8742495 --- /dev/null +++ b/deployments/argocd/apps/telecom-platform-staging.yaml @@ -0,0 +1,32 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: telecom-platform-staging + namespace: argocd + labels: + app.kubernetes.io/name: telecom-platform-staging + app.kubernetes.io/component: platform + app.kubernetes.io/environment: staging + app.kubernetes.io/part-of: telecom-platform +spec: + project: default + source: + repoURL: https://github.com/nutcas3/telecom-platform.git + targetRevision: main + path: deployments/environments/staging + destination: + server: https://kubernetes.default.svc + namespace: telecom-platform-staging + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + - PrunePropagationPolicy=foreground + retry: + limit: 5 + backoff: + duration: 5s + factor: 2 + maxDuration: 3m diff --git a/deployments/argocd/apps/telecom-platform.yaml b/deployments/argocd/apps/telecom-platform.yaml new file mode 100644 index 0000000..64e19d9 --- /dev/null +++ b/deployments/argocd/apps/telecom-platform.yaml @@ -0,0 +1,31 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: telecom-platform + namespace: argocd + labels: + app.kubernetes.io/name: telecom-platform + app.kubernetes.io/component: platform + app.kubernetes.io/part-of: telecom-platform +spec: + project: default + source: + repoURL: https://github.com/nutcas3/telecom-platform.git + targetRevision: main + path: deployments/kubernetes + destination: + server: https://kubernetes.default.svc + namespace: telecom-platform + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + - PrunePropagationPolicy=foreground + retry: + limit: 5 + backoff: + duration: 5s + factor: 2 + maxDuration: 3m