-
Notifications
You must be signed in to change notification settings - Fork 2
/
app-set-prod.yaml
78 lines (77 loc) · 1.89 KB
/
app-set-prod.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: faf-k8s
namespace: argocd
spec:
syncPolicy:
preserveResourcesOnDeletion: true
generators:
- git:
repoURL: https://github.com/FAForever/gitops-stack.git
revision: HEAD
directories:
- path: 'apps/*'
- path: 'infra/*'
- path: 'ops/*'
template:
metadata:
name: '{{path.basenameNormalized}}'
spec:
project: "default"
destination:
server: https://kubernetes.default.svc
namespace: 'faf-{{path[0]}}'
syncPolicy:
automated:
prune: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
sources:
- repoURL: https://github.com/FAForever/gitops-stack.git
targetRevision: HEAD
path: '{{path}}'
helm:
ignoreMissingValueFiles: true
valueFiles:
- '/config/prod.yaml'
- '/{{path}}/values-prod.yaml'
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: cluster
namespace: argocd
spec:
syncPolicy:
preserveResourcesOnDeletion: true
generators:
- git:
repoURL: https://github.com/FAForever/gitops-stack.git
revision: HEAD
directories:
- path: 'cluster/*'
template:
metadata:
name: '{{path.basenameNormalized}}'
spec:
project: "default"
destination:
server: https://kubernetes.default.svc
namespace: '{{path.basenameNormalized}}'
syncPolicy:
automated:
prune: false
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
sources:
- repoURL: https://github.com/FAForever/gitops-stack.git
targetRevision: HEAD
path: '{{path}}'
helm:
ignoreMissingValueFiles: true
valueFiles:
- '/config/prod.yaml'
- '/{{path}}/values-prod.yaml'