-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappset.yaml
38 lines (37 loc) · 983 Bytes
/
appset.yaml
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
32
33
34
35
36
37
38
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: argocd-root
spec:
generators:
- list:
elements:
- name: nginx
stage: test
repoUrl: https://github.com/mrjerzy/app-nginx.git
targetRevision: HEAD
- name: nginx
stage: prod
repoUrl: https://github.com/mrjerzy/app-nginx.git
targetRevision: v0.0.2
- name: prometheus-operator
stage: prod
repoUrl: https://github.com/mrjerzy/app-prometheus-operator.git
targetRevision: HEAD
template:
metadata:
name: '{{name}}-{{stage}}'
spec:
project: default
source:
repoURL: '{{repoUrl}}'
targetRevision: '{{targetRevision}}'
path: deployment/{{stage}}
destination:
server: 'https://kubernetes.default.svc'
namespace: '{{name}}-{{stage}}'
syncPolicy:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true