forked from choisungwook/argocd-practice
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap-applicationset.yaml
More file actions
31 lines (31 loc) · 910 Bytes
/
bootstrap-applicationset.yaml
File metadata and controls
31 lines (31 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: bootstraps
namespace: argocd
spec:
generators:
- list:
elements:
- appName: cluster-a # kubernetes cluster name
appProject: default # argocd project name
k8sURL: https://kubernetes.default.svc # kubernetes cluster url
gitRepoURL: https://github.com/choisungwook/argocd-practice.git # git repository url
path: bootstrap/example-bootstrap-apps # git repository path
targetRevision: HEAD # git revision
template:
metadata:
name: '{{appName}}-bootstrap'
spec:
project: '{{appProject}}'
source:
repoURL: '{{gitRepoURL}}'
targetRevision: '{{targetRevision}}'
path: '{{path}}'
destination:
server: '{{k8sURL}}'
namespace: argocd
syncPolicy:
automated:
prune: true
selfHeal: true