Skip to content

Commit 2fcc172

Browse files
committed
Deploy multiple applications to multiple clusters
1 parent 0015c20 commit 2fcc172

File tree

2 files changed

+35
-34
lines changed

2 files changed

+35
-34
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: ApplicationSet
3+
metadata:
4+
name: cluster-git
5+
spec:
6+
generators:
7+
# matrix 'parent' generator
8+
- matrix:
9+
generators:
10+
# git generator, 'child' #1
11+
- git:
12+
repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git
13+
revision: HEAD
14+
directories:
15+
- path: application-sets/example-apps/*
16+
# cluster generator, 'child' #2
17+
- clusters: {}
18+
# selector:
19+
# matchLabels:
20+
# argocd.argoproj.io/secret-type: cluster
21+
template:
22+
metadata:
23+
name: '{{path.basename}}-{{name}}'
24+
spec:
25+
project: default
26+
source:
27+
repoURL: https://github.com/codefresh-contrib/gitops-cert-level-2-examples.git
28+
targetRevision: HEAD
29+
path: '{{path}}'
30+
destination:
31+
server: '{{server}}'
32+
namespace: '{{path.basename}}'
33+
syncPolicy:
34+
syncOptions:
35+
- CreateNamespace=true

application-sets/my-application-sets/single-app-multiple-clusters.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)