de8c462d by Adam Heath

Add knobs to set the size of the pvcs(log, txlog, sessions).

1 parent a233cf95
1 name: test 1 name: test
2 namespace: default 2 namespace: default
3 storage:
4 log:
5 requests: 10Gi
6 storageClassName: null
7 txlog:
8 requests: 2Gi
9 storageClassName: null
10 sessions:
11 requests: 2Gi
12 storageClassName: null
3 elasticsearch: 13 elasticsearch:
4 enabled: true 14 enabled: true
5 version: 8.2.3 15 version: 8.2.3
......
...@@ -144,6 +144,42 @@ releases: ...@@ -144,6 +144,42 @@ releases:
144 {{- end }} 144 {{- end }}
145 145
146 strategicMergePatches: 146 strategicMergePatches:
147 - apiVersion: v1
148 kind: PersistentVolumeClaim
149 metadata:
150 name: {{ .Values.name }}-moqui-log
151 namespace: {{ .Values.namespace }}
152 spec:
153 resources:
154 requests:
155 storage: {{ .Values.storage.log.requests }}
156 {{- if .Values.storage.log.storageClassName }}
157 storageClassName: {{ .Values.storage.log.storageClassName }}
158 {{- end }}
159 - apiVersion: v1
160 kind: PersistentVolumeClaim
161 metadata:
162 name: {{ .Values.name }}-moqui-txlog
163 namespace: {{ .Values.namespace }}
164 spec:
165 resources:
166 requests:
167 storage: {{ .Values.storage.txlog.requests }}
168 {{- if .Values.storage.txlog.storageClassName }}
169 storageClassName: {{ .Values.storage.txlog.storageClassName }}
170 {{- end }}
171 - apiVersion: v1
172 kind: PersistentVolumeClaim
173 metadata:
174 name: {{ .Values.name }}-moqui-sessions
175 namespace: {{ .Values.namespace }}
176 spec:
177 resources:
178 requests:
179 storage: {{ .Values.storage.sessions.requests }}
180 {{- if .Values.storage.sessions.storageClassName }}
181 storageClassName: {{ .Values.storage.sessions.storageClassName }}
182 {{- end }}
147 - apiVersion: apps/v1 183 - apiVersion: apps/v1
148 kind: Deployment 184 kind: Deployment
149 metadata: 185 metadata:
......