@@ -47,14 +47,15 @@ ingress:
47
47
- host : commons-archive.org
48
48
paths :
49
49
- path : /
50
+ pathType : ImplementationSpecific
50
51
- host : " *.commons-archive.org"
51
52
paths :
52
53
- path : /
53
- annotations : {
54
- kubernetes.io/ingress.class : " nginx " ,
55
- nginx.ingress. kubernetes.io/proxy-body-size : " 0 " ,
56
- cert-manager. io/cluster-issuer : letsencrypt-production-dns
57
- }
54
+ pathType : ImplementationSpecific
55
+ annotations :
56
+ kubernetes.io/ingress.class : " nginx "
57
+ nginx.ingress.kubernetes. io/proxy-body-size : " 0 "
58
+ cert-manager.io/cluster-issuer : " letsencrypt-production-dns "
58
59
tls :
59
60
- hosts :
60
61
- commons-archive.org
@@ -191,6 +192,167 @@ worker:
191
192
runAsGroup : 101
192
193
fsGroup : 101
193
194
fsGroupChangePolicy : " OnRootMismatch"
195
+
196
+ # When adding/removing key-value pairs to this block, ensure the
197
+ # corresponding changes are made in the `extraDeploy` block below.
198
+ workerAuxiliary :
199
+ replicaCount : 1
200
+ resources :
201
+ limits :
202
+ memory : " 12Gi"
203
+ cpu : " 4"
204
+ requests :
205
+ memory : " 4Gi"
206
+ cpu : " 2"
207
+ extraEnvVars :
208
+ - name : AUXILIARY_WORKER_THREAD_COUNT
209
+ value : " 1"
210
+ - name : SIDEKIQ_CONFIG
211
+ value : " config/sidekiq_auxiliary.yml"
212
+
213
+ extraDeploy :
214
+ - |-
215
+ apiVersion: apps/v1
216
+ kind: Deployment
217
+ metadata:
218
+ name: {{ include "hyrax.fullname" . }}-auxiliary-worker
219
+ labels:
220
+ {{- include "hyrax.labels" . | nindent 4 }}
221
+ spec:
222
+ replicas: {{ .Values.workerAuxiliary.replicaCount }}
223
+ selector:
224
+ matchLabels:
225
+ {{- include "hyrax.workerSelectorLabels" . | nindent 6 }}
226
+ template:
227
+ metadata:
228
+ {{- with .Values.podAnnotations }}
229
+ annotations:
230
+ {{- toYaml . | nindent 8 }}
231
+ {{- end }}
232
+ labels:
233
+ {{- include "hyrax.workerSelectorLabels" . | nindent 8 }}
234
+ spec:
235
+ initContainers:
236
+ - name: db-wait
237
+ image: "{{ .Values.worker.image.repository }}:{{ .Values.worker.image.tag | default .Chart.AppVersion }}"
238
+ imagePullPolicy: {{ .Values.worker.image.pullPolicy }}
239
+ envFrom:
240
+ - configMapRef:
241
+ name: {{ include "hyrax.fullname" . }}-env
242
+ - secretRef:
243
+ name: {{ template "hyrax.fullname" . }}
244
+ env:
245
+ {{- toYaml .Values.workerAuxiliary.extraEnvVars | nindent 12 }}
246
+ {{- toYaml .Values.worker.extraEnvVars | nindent 12 }}
247
+ command:
248
+ - sh
249
+ - -c
250
+ - "db-wait.sh {{ include "hyrax.redis.host" . }}:6379"
251
+ {{- if .Values.worker.extraInitContainers }}
252
+ {{- toYaml .Values.worker.extraInitContainers | nindent 8 }}
253
+ {{- end }}
254
+ {{- with .Values.imagePullSecrets }}
255
+ imagePullSecrets:
256
+ {{- toYaml . | nindent 8 }}
257
+ {{- end }}
258
+ serviceAccountName: {{ include "hyrax.serviceAccountName" . }}
259
+ securityContext:
260
+ {{- toYaml .Values.worker.podSecurityContext | nindent 8 }}
261
+ containers:
262
+ - name: {{ .Chart.Name }}-worker
263
+ securityContext:
264
+ {{- toYaml .Values.worker.securityContext | nindent 12 }}
265
+ image: "{{ .Values.worker.image.repository }}:{{ .Values.worker.image.tag | default .Chart.AppVersion }}"
266
+ imagePullPolicy: {{ .Values.worker.image.pullPolicy }}
267
+ envFrom:
268
+ - configMapRef:
269
+ name: {{ include "hyrax.fullname" . }}-env
270
+ - secretRef:
271
+ name: {{ template "hyrax.fullname" . }}
272
+ {{- if .Values.solrExistingSecret }}
273
+ - secretRef:
274
+ name: {{ .Values.solrExistingSecret }}
275
+ {{- end }}
276
+ {{- with .Values.worker.extraEnvFrom }}
277
+ {{- toYaml . | nindent 12 }}
278
+ {{- end }}
279
+ env:
280
+ {{- toYaml .Values.workerAuxiliary.extraEnvVars | nindent 12 }}
281
+ {{- toYaml .Values.worker.extraEnvVars | nindent 12 }}
282
+ {{- if .Values.worker.readinessProbe.enabled }}
283
+ readinessProbe:
284
+ exec:
285
+ command:
286
+ {{- toYaml .Values.worker.readinessProbe.command | nindent 16 }}
287
+ failureThreshold: {{ .Values.worker.readinessProbe.failureThreshold }}
288
+ initialDelaySeconds: {{ .Values.worker.readinessProbe.initialDelaySeconds }}
289
+ periodSeconds: {{ .Values.worker.readinessProbe.periodSeconds }}
290
+ successThreshold: {{ .Values.worker.readinessProbe.successThreshold }}
291
+ timeoutSeconds: {{ .Values.worker.readinessProbe.timeoutSeconds }}
292
+ {{- end }}
293
+ volumeMounts:
294
+ - name: derivatives
295
+ mountPath: /app/samvera/derivatives
296
+ - name: uploads
297
+ subPath: file_cache
298
+ mountPath: /app/samvera/file_cache
299
+ - name: uploads
300
+ subPath: uploads
301
+ mountPath: /app/samvera/uploads
302
+ {{- if .Values.applicationExistingClaim }}
303
+ - name: application
304
+ mountPath: /app/samvera/hyrax-webapp
305
+ {{- end }}
306
+ {{- with .Values.worker.extraVolumeMounts }}
307
+ {{- toYaml . | nindent 12 }}
308
+ {{- end }}
309
+ resources:
310
+ {{- toYaml .Values.workerAuxiliary.resources | nindent 12 }}
311
+ {{- with .Values.extraContainerConfiguration }}
312
+ {{- toYaml . | nindent 10 }}
313
+ {{- end }}
314
+ volumes:
315
+ - name: "derivatives"
316
+ {{- if and .Values.derivativesVolume.enabled .Values.derivativesVolume.existingClaim }}
317
+ persistentVolumeClaim:
318
+ claimName: {{ .Values.derivativesVolume.existingClaim }}
319
+ {{- else if .Values.derivativesVolume.enabled }}
320
+ persistentVolumeClaim:
321
+ claimName: {{ template "hyrax.fullname" . }}-derivatives
322
+ {{ else }}
323
+ emptyDir: {}
324
+ {{ end }}
325
+ - name: "uploads"
326
+ {{- if and .Values.uploadsVolume.enabled .Values.uploadsVolume.existingClaim }}
327
+ persistentVolumeClaim:
328
+ claimName: {{ .Values.uploadsVolume.existingClaim }}
329
+ {{- else if .Values.uploadsVolume.enabled }}
330
+ persistentVolumeClaim:
331
+ claimName: {{ template "hyrax.fullname" . }}-uploads
332
+ {{ else }}
333
+ emptyDir: {}
334
+ {{ end }}
335
+ {{- if .Values.applicationExistingClaim }}
336
+ - name: "application"
337
+ persistentVolumeClaim:
338
+ claimName: {{ .Values.applicationExistingClaim }}
339
+ {{- end }}
340
+ {{- with .Values.worker.extraVolumes }}
341
+ {{- toYaml . | nindent 8 }}
342
+ {{- end }}
343
+ {{- with .Values.worker.nodeSelector }}
344
+ nodeSelector:
345
+ {{- toYaml . | nindent 8 }}
346
+ {{- end }}
347
+ {{- with .Values.worker.affinity }}
348
+ affinity:
349
+ {{- toYaml . | nindent 8 }}
350
+ {{- end }}
351
+ {{- with .Values.worker.tolerations }}
352
+ tolerations:
353
+ {{- toYaml . | nindent 8 }}
354
+ {{- end }}
355
+
194
356
podSecurityContext :
195
357
runAsUser : 1001
196
358
runAsGroup : 101
@@ -208,11 +370,16 @@ fcrepo:
208
370
postgresql :
209
371
enabled : false
210
372
redis :
211
- cluster :
212
- enabled : false
213
- password : $REDIS_PASSWORD
373
+ enabled : true
374
+ architecture : standalone
375
+ auth :
376
+ password : $REDIS_PASSWORD
214
377
solr :
215
378
enabled : false
379
+ fits :
380
+ enabled : true
381
+ servicePort : 8080
382
+ subPath : /fits
216
383
217
384
externalPostgresql :
218
385
host : postgres-cluster-alpha-ha.postgres.svc.cluster.local
@@ -226,7 +393,7 @@ externalSolrCollection: demo-palni-palci
226
393
externalSolrPassword : $SOLR_ADMIN_PASSWORD
227
394
228
395
global :
229
- hyraxName : palni-palci-demo-pals
396
+ hyraxHostName : palni-palci-demo-pals
230
397
231
398
nginx :
232
399
enabled : true
@@ -238,7 +405,7 @@ nginx:
238
405
tag : 1.21.5-debian-10-r4
239
406
serverBlock : |-
240
407
upstream rails_app {
241
- server {{ .Values.global.hyraxName }};
408
+ server {{ .Values.global.hyraxHostName }};
242
409
}
243
410
244
411
map ${DOLLAR}status ${DOLLAR}loggable {
0 commit comments