Fix single disk distributed deployment (#19758)

Signed-off-by: Harshavardhana <harsha@minio.io>
This commit is contained in:
Harshavardhana
2019-12-23 19:23:30 -08:00
committed by Kubernetes Prow Robot
parent 7805b76b4a
commit d6f344368f
2 changed files with 25 additions and 4 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: MinIO is a high performance distributed object storage server, designed for large-scale private cloud infrastructure.
description: MinIO is a high performance data infrastructure for machine learning, analytics and application data workloads.
name: minio
version: 4.0.1
version: 4.0.2
appVersion: master
keywords:
- storage
+23 -2
View File
@@ -81,6 +81,7 @@ spec:
{{- end }}
volumeMounts:
{{- if $penabled }}
{{- if (gt $drivesPerNode 1) }}
{{- range $i := until $drivesPerNode }}
- name: export-{{ $i }}
mountPath: {{ $mountPath }}-{{ $i }}
@@ -88,6 +89,13 @@ spec:
subPath: {{ $subPath }}
{{- end }}
{{- end }}
{{- else }}
- name: export
mountPath: {{ $mountPath }}
{{- if and $penabled $subPath }}
subPath: {{ $subPath }}
{{- end }}
{{- end }}
{{- end }}
- name: minio-config-dir
mountPath: {{ .Values.configPath }}
@@ -161,6 +169,7 @@ spec:
{{ end }}
{{- if .Values.persistence.enabled }}
volumeClaimTemplates:
{{- if gt $drivesPerNode 1 }}
{{- range $diskId := until $drivesPerNode}}
- metadata:
name: export-{{ $diskId }}
@@ -172,6 +181,18 @@ spec:
resources:
requests:
storage: {{ $psize }}
{{- end }}
{{ end }}
{{- end }}
{{- else }}
- metadata:
name: export
spec:
accessModes: [ {{ $accessMode | quote }} ]
{{- if $storageClass }}
storageClassName: {{ $storageClass }}
{{- end }}
resources:
requests:
storage: {{ $psize }}
{{- end }}
{{- end }}
{{- end }}