Skip to content

Commit

Permalink
Add support for additional volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
faridco committed Apr 8, 2024
1 parent f464788 commit c93287f
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
8 changes: 8 additions & 0 deletions aidbox/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
13 changes: 13 additions & 0 deletions aidbox/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions aidboxdb/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ spec:
- name: db-data
mountPath: /data
subPath: pg
{{- with .Values.volumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
ports:
- containerPort: 5432
protocol: TCP
Expand All @@ -61,3 +64,6 @@ spec:
- name: db-data
persistentVolumeClaim:
claimName: {{ $fullName }}-data
{{- with .Values.volumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
14 changes: 13 additions & 1 deletion aidboxdb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ env:
storageClassName: ""
storageSize: 300Gi


image:
repository: healthsamurai/aidboxdb
pullPolicy: IfNotPresent
Expand All @@ -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

0 comments on commit c93287f

Please sign in to comment.