Skip to content

Commit

Permalink
Create applcation.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
NaveenBalagouni authored Jan 3, 2025
1 parent b154f9d commit 7bc3e21
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions Argocd/argocd-apps-srcs/apps/multi-sources-app/applcation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: multi-source-app
namespace: argocd
spec:
project: default
source:
# First Source (Frontend from Git Repository)
repoURL: https://github.com/myorg/frontend-repo
targetRevision: main
path: k8s/frontend
helm:
releaseName: frontend-app
valueFiles:
- values.yaml
destination:
server: https://kubernetes.default.svc
namespace: default
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
# Second Source (Backend from a Different Git Repository)
sources:
- repoURL: https://github.com/myorg/backend-repo
targetRevision: main
path: k8s/backend
# Optional third source (Database from a Helm chart)
source:
repoURL: https://charts.bitnami.com/bitnami
chart: postgresql
targetRevision: 10.3.14
helm:
releaseName: postgresql
values: |
postgresqlPassword: "mysecretpassword"
postgresqlDatabase: "mydatabase"
destination:
server: https://kubernetes.default.svc
namespace: default
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true

0 comments on commit 7bc3e21

Please sign in to comment.