File tree 1 file changed +31
-0
lines changed
v09-argocd-applicationSet-1/cluster-generator
1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : argoproj.io/v1alpha1
2
+ kind : ApplicationSet
3
+ metadata :
4
+ name : cluster-generator
5
+ namespace : argocd
6
+ spec :
7
+ generators :
8
+ - clusters :
9
+ selector :
10
+ matchExpressions :
11
+ - key : argocd.argoproj.io/kubernetes-version # the label argocd.argoproj.io/auto-label-cluster-info needs to be set to true on the cluster secret.
12
+ operator : In
13
+ values :
14
+ - " 1.28"
15
+ - " 1.31"
16
+ template :
17
+ metadata :
18
+ name : ' {{name}}-application'
19
+ spec :
20
+ project : " default"
21
+ source :
22
+ repoURL : https://github.com/devopshobbies/argocd-tutorial.git
23
+ targetRevision : main
24
+ path : v03-argocd-applications/helm/nginx
25
+ destination :
26
+ server : ' {{server}}'
27
+ namespace : prod
28
+ syncPolicy :
29
+ automated : {}
30
+ syncOptions :
31
+ - CreateNamespace=true
You can’t perform that action at this time.
0 commit comments