Skip to content

Commit 0015c20

Browse files
committed
application to multiple clusters
1 parent 9a9ff5b commit 0015c20

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

application-sets/my-application-sets/many-apps.yml renamed to application-sets/my-application-sets/single-app-multiple-clusters.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
apiVersion: argoproj.io/v1alpha1
22
kind: ApplicationSet
33
metadata:
4-
name: many-apps-application-set
4+
name: multi-cluster-application-set
55
namespace: argocd
66
spec:
77
generators:
8-
- git:
9-
repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git
10-
revision: HEAD
11-
directories:
12-
- path: application-sets/example-apps/*
8+
- clusters: {} # Automatically use all clusters defined within Argo CD
139
template:
1410
metadata:
15-
name: '{{path.basename}}'
11+
name: '{{name}}-billing-app'
1612
spec:
1713
# The project the application belongs to.
1814
project: default
@@ -21,12 +17,12 @@ spec:
2117
source:
2218
repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git
2319
targetRevision: HEAD
24-
path: '{{path}}'
20+
path: ./application-sets/manifests
2521

2622
# Destination cluster and namespace to deploy the application
2723
destination:
28-
server: https://kubernetes.default.svc
29-
namespace: '{{path.basename}}'
24+
server: '{{server}}'
25+
namespace: billing
3026

3127
# Sync policy
3228
syncPolicy:

0 commit comments

Comments
 (0)