diff --git a/aidbox/templates/deployment.yaml b/aidbox/templates/deployment.yaml index 40aaf95..5e86885 100644 --- a/aidbox/templates/deployment.yaml +++ b/aidbox/templates/deployment.yaml @@ -48,6 +48,14 @@ spec: {{- toYaml .Values.readinessProbe | nindent 12 }} resources: {{- toYaml .Values.resources | nindent 12 }} + {{- with .Values.volumeMounts }} + volumeMounts: + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.volumes }} + volumes: + {{- toYaml . | nindent 8 }} + {{- end }} affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: diff --git a/aidbox/values.yaml b/aidbox/values.yaml index ae37765..1587f0e 100644 --- a/aidbox/values.yaml +++ b/aidbox/values.yaml @@ -56,6 +56,19 @@ startupProbe: periodSeconds: 5 failureThreshold: 10 +# Additional volumes on the output Deployment definition. +volumes: [] +# - name: foo +# secret: +# secretName: mysecret +# optional: false + +# Additional volumeMounts on the output Deployment definition. +volumeMounts: [] +# - name: foo +# mountPath: "/etc/foo" +# readOnly: true + resources: # limits: # cpu: 100m diff --git a/aidboxdb/templates/statefulset.yaml b/aidboxdb/templates/statefulset.yaml index afed097..e793dd6 100644 --- a/aidboxdb/templates/statefulset.yaml +++ b/aidboxdb/templates/statefulset.yaml @@ -47,6 +47,9 @@ spec: - name: db-data mountPath: /data subPath: pg + {{- with .Values.volumeMounts }} + {{- toYaml . | nindent 12 }} + {{- end }} ports: - containerPort: 5432 protocol: TCP @@ -61,3 +64,6 @@ spec: - name: db-data persistentVolumeClaim: claimName: {{ $fullName }}-data + {{- with .Values.volumes }} + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/aidboxdb/values.yaml b/aidboxdb/values.yaml index f4a1dc8..a306225 100644 --- a/aidboxdb/values.yaml +++ b/aidboxdb/values.yaml @@ -9,7 +9,6 @@ env: storageClassName: "" storageSize: 300Gi - image: repository: healthsamurai/aidboxdb pullPolicy: IfNotPresent @@ -30,3 +29,16 @@ securityContext: {} # readOnlyRootFilesystem: true # runAsNonRoot: true # runAsUser: 1000 + +# Additional volumes on the output StatefulSet definition. +volumes: [] +# - name: foo +# secret: +# secretName: mysecret +# optional: false + +# Additional volumeMounts on the output StatefulSet definition. +volumeMounts: [] +# - name: foo +# mountPath: "/etc/foo" +# readOnly: true