-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplicationset.yaml
46 lines (45 loc) · 1.18 KB
/
applicationset.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
39
40
41
42
43
44
45
46
# This applicationSet will be deployed to paris and tokyo cluster.
# The app is a nginx server that respond a dummy message set by an env var
# note that an init container will just wait for 30 seconds to simulate a long startup time
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: hello
spec:
syncPolicy:
applicationsSync: create-update
generators:
- list:
elements:
- cluster: paris
url: https://172.19.0.3:6443
- cluster: tokyo
url: https://172.19.0.4:6443
template:
metadata:
name: '{{cluster}}-hello'
labels:
region: '{{cluster}}'
spec:
project: default
source:
repoURL: https://gitlab.com/rootmout.perso/poc/applicationset.git
targetRevision: HEAD
path: manifests/hello/{{cluster}}
destination:
server: '{{url}}'
namespace: hello
strategy:
type: RollingSync
rollingSync:
steps:
- matchExpressions:
- key: region
operator: In
values:
- tokyo
- matchExpressions:
- key: region
operator: In
values:
- paris