diff --git a/helm/minio/templates/deployment.yaml b/helm/minio/templates/deployment.yaml index 321692637..692f86efd 100644 --- a/helm/minio/templates/deployment.yaml +++ b/helm/minio/templates/deployment.yaml @@ -92,6 +92,9 @@ spec: mountPath: "/tmp/minio-config-env" {{- end }} {{- include "minio.tlsKeysVolumeMount" . | indent 12 }} + {{- if .Values.extraVolumeMounts }} + {{- toYaml .Values.extraVolumeMounts | nindent 12 }} + {{- end }} ports: - name: {{ $scheme }} containerPort: {{ .Values.minioAPIPort }} @@ -190,4 +193,7 @@ spec: secret: secretName: {{ template "minio.secretName" . }} {{- include "minio.tlsKeysVolume" . | indent 8 }} + {{- if .Values.extraVolumes }} + {{ toYaml .Values.extraVolumes | nindent 8 }} + {{- end }} {{- end }} diff --git a/helm/minio/templates/statefulset.yaml b/helm/minio/templates/statefulset.yaml index 6d695ddf5..490de918d 100644 --- a/helm/minio/templates/statefulset.yaml +++ b/helm/minio/templates/statefulset.yaml @@ -130,6 +130,9 @@ spec: mountPath: "/tmp/minio-config-env" {{- end }} {{- include "minio.tlsKeysVolumeMount" . | indent 12 }} + {{- if .Values.extraVolumeMounts }} + {{- toYaml .Values.extraVolumeMounts | nindent 12 }} + {{- end }} ports: - name: {{ $scheme }} containerPort: {{ .Values.minioAPIPort }} @@ -207,6 +210,9 @@ spec: secretName: {{ .Values.extraSecret }} {{- end }} {{- include "minio.tlsKeysVolume" . | indent 8 }} + {{- if .Values.extraVolumes }} + {{ toYaml .Values.extraVolumes | nindent 8 }} + {{- end }} {{- if .Values.persistence.enabled }} volumeClaimTemplates: {{- if gt $drivesPerNode 1 }} diff --git a/helm/minio/values.yaml b/helm/minio/values.yaml index 220c01da6..2ca201f18 100644 --- a/helm/minio/values.yaml +++ b/helm/minio/values.yaml @@ -46,6 +46,12 @@ ignoreChartChecksums: false ## Additional arguments to pass to minio binary extraArgs: [] +## Additional volumes to minio container +extraVolumes: [] + +## Additional volumeMounts to minio container +extraVolumeMounts: [] + ## Internal port number for MinIO S3 API container ## Change service.port to change external port number minioAPIPort: "9000"