-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpvc_argocd_appset.yaml
80 lines (77 loc) · 2.85 KB
/
pvc_argocd_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
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
79
80
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: matrix-pvc-appset
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "1"
spec:
goTemplate: true
# generator allows us to source specific values from an external k8s secret
generators:
- plugin:
configMapRef:
name: secret-var-plugin-generator
input:
parameters:
secret_vars:
- global_pvc_storage_class
- matrix_media_pvc_enabled
- matrix_media_storage
- matrix_media_access_mode
- matrix_synapse_config_pvc_enabled
- matrix_synapse_config_storage
- matrix_synapse_config_access_mode
- matrix_signing_key_pvc_enabled
- matrix_signing_key_storage
- matrix_signing_key_access_mode
template:
metadata:
name: matrix-pvc
annotations:
argocd.argoproj.io/sync-wave: "1"
spec:
project: matrix
destination:
server: "https://kubernetes.default.svc"
namespace: matrix
syncPolicy:
syncOptions:
- ApplyOutOfSyncOnly=true
automated:
prune: true
selfHeal: true
source:
repoURL: https://github.com/small-hack/argocd-apps.git
path: matrix/storage/pvc/
targetRevision: main
helm:
valuesObject:
# -- enable matrix media pvc
media_pvc:
enabled: '{{ .matrix_media_pvc_enabled }}'
storageClassName: '{{ .global_pvc_storage_class }}'
accessMode: '{{ .matrix_media_access_mode }}'
storage: '{{ .matrix_media_storage }}'
# -- enable matrix synapse configuration pvc
synapse_config_pvc:
enabled: '{{ .matrix_synapse_config_pvc_enabled }}'
storageClassName: '{{ .global_pvc_storage_class }}'
accessMode: '{{ .matrix_synapse_config_access_mode }}'
storage: '{{ .matrix_synapse_config_storage }}'
# -- enable matrix signing key pvc
signing_key_pvc:
enabled: '{{ .matrix_signing_key_pvc_enabled }}'
storageClassName: '{{ .global_pvc_storage_class }}'
accessMode: '{{ .matrix_signing_key_access_mode }}'
storage: '{{ .matrix_signing_key_storage }}'
# this is for storing the config of mas (matrix authentication service)
matrix_authentication_service_config_pvc:
enabled: true
# -- default storage class name to use for mas pvc
storageClassName: '{{ .global_pvc_storage_class }}'
# -- default access mode for the mas pvc
accessMode: '{{ .matrix_synapse_config_access_mode }}'
# -- storage capacity for the matrix mas pvc
storage: "500Mi"