helm: add extra volumes and extra volume mounts option (#15568)

- add a new line to the end of the credentials file when creating a user
- add extra volumes and mounts option into helm chart
This commit is contained in:
Jan Šafařík
2022-08-23 20:15:26 +02:00
committed by GitHub
parent b62a5c954c
commit 0f7aa4125f
3 changed files with 18 additions and 0 deletions

View File

@@ -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 }}

View File

@@ -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 }}

View File

@@ -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"