@@ -162,6 +162,9 @@ spec:
162
162
wget ${ARCHIVE_URL} -O ${DATA_DIR}/archive.tar.gz
163
163
tar zxvf ${DATA_DIR}/archive.tar.gz -C ${DATA_DIR}
164
164
rm -f ${DATA_DIR}/archive.tar.gz
165
+ echo "Setting permissions"
166
+ chown -R {{ .Values.apiWriter.containerSecurityContext.runAsUser }}:{{ .Values.apiWriter.containerSecurityContext.fsGroup }} ${DATA_DIR}
167
+ chown -R {{ .Values.apiWriter.containerSecurityContext.runAsUser }}:{{ .Values.apiWriter.containerSecurityContext.fsGroup }} {{ .Values.apiWriter.persistence.bns.mountPath }}
165
168
else
166
169
echo "Previous data found. Exiting."
167
170
fi
@@ -177,6 +180,8 @@ spec:
177
180
{{- if .Values.apiWriter.persistence.data.subPath }}
178
181
subPath : {{ .Values.apiWriter.persistence.data.subPath }}
179
182
{{- end }}
183
+ - name : bns-data
184
+ mountPath : {{ .Values.apiWriter.persistence.bns.mountPath }}
180
185
{{- end }}
181
186
{{- if .Values.apiWriter.volumePermissions.enabled }}
182
187
- name : volume-permissions
@@ -200,6 +205,8 @@ spec:
200
205
{{- if .Values.apiWriter.persistence.data.subPath }}
201
206
subPath : {{ .Values.apiWriter.persistence.data.subPath }}
202
207
{{- end }}
208
+ - name : bns-data
209
+ mountPath : {{ .Values.apiWriter.persistence.bns.mountPath }}
203
210
{{- end }}
204
211
{{- if .Values.apiWriter.config.replayEvents }}
205
212
- name : replay-events
@@ -225,6 +232,18 @@ spec:
225
232
secretKeyRef :
226
233
key : {{ include "postgresql.adminPasswordKey" .Subcharts.postgresql | quote }}
227
234
name : {{ include "postgresql.secretName" .Subcharts.postgresql | quote }}
235
+ - name : PG_IDENT_INDEX_TYPE
236
+ value : hash
237
+ - name : NODE_ENV
238
+ value : production
239
+ - name : BNS_IMPORT_DIR
240
+ value : {{ .Values.apiWriter.persistence.bns.mountPath }}
241
+ - name : STACKS_API_EVENT_REPLAY_LOG_LEVEL
242
+ value : debug
243
+ - name : STACKS_API_ENABLE_FT_METADATA
244
+ value : {{ ternary "1" "0" .Values.apiWriter.config.enableFtMetadata | quote }}
245
+ - name : STACKS_API_ENABLE_NFT_METADATA
246
+ value : {{ ternary "1" "0" .Values.apiWriter.config.enableNftMetadata | quote }}
228
247
command :
229
248
- sh
230
249
- -c
@@ -242,6 +261,8 @@ spec:
242
261
{{- if .Values.apiWriter.persistence.data.subPath }}
243
262
subPath : {{ .Values.apiWriter.persistence.data.subPath }}
244
263
{{- end }}
264
+ - name : bns-data
265
+ mountPath : {{ .Values.apiWriter.persistence.bns.mountPath }}
245
266
{{- end }}
246
267
{{- if .Values.apiWriter.initContainers }}
247
268
{{- include "common.tplvalues.render" (dict "value" .Values.apiWriter.initContainers "context" $) | nindent 8 }}
@@ -310,6 +331,8 @@ spec:
310
331
- name : PG_CONNECTION_POOL_MAX
311
332
value : {{ default "50" .Values.apiWriter.config.pgConnectionPoolMax | quote }}
312
333
{{- if .Values.cdn.enabled }}
334
+ - name : PG_IDENT_INDEX_TYPE
335
+ value : hash
313
336
- name : IMGIX_TOKEN
314
337
valueFrom :
315
338
secretKeyRef :
0 commit comments