[stable/minio] Support use minio as a Alibaba Cloud oss gateway. (#10632)

* [stable/minio] Support use minio as a Alibaba Cloud oss gateway.

Signed-off-by: Qiu Yuzhou <qbowater@gmail.com>

* [stable/minio] Bump version to 2.4.0

Signed-off-by: Qiu Yuzhou <qbowater@gmail.com>

* [stable/minio] Fixes typo in README.

Signed-off-by: Charlie Qiu <qbowater@gmail.com>
This commit is contained in:
Qiu Yuzhou
2019-01-24 22:49:23 -08:00
committed by Kubernetes Prow Robot
parent 292034451b
commit 4a082ea376
4 changed files with 20 additions and 1 deletions
+1 -1
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.
name: minio
version: 2.3.6
version: 2.4.0
appVersion: RELEASE.2019-01-10T00-21-20Z
keywords:
- storage
+3
View File
@@ -149,6 +149,9 @@ The following table lists the configurable parameters of the Minio chart and the
| `gcsgateway.enabled` | Use minio as a [Google Cloud Storage gateway](https://docs.minio.io/docs/minio-gateway-for-gcs)| `false` |
| `gcsgateway.gcsKeyJson` | credential json file of service account key | `""` |
| `gcsgateway.projectId` | Google cloud project id | `""` |
| `ossgateway.enabled` | Use minio as an [Alibaba Cloud Object Storage Service gateway](https://github.com/minio/minio/blob/master/docs/gateway/oss.md)| `false` |
| `ossgateway.replicas` | Number of oss gateway instances to run in parallel | `4` |
| `ossgateway.endpointURL` | OSS server endpoint. | `""` |
| `nasgateway.enabled` | Use minio as a [NAS gateway](https://docs.minio.io/docs/minio-gateway-for-nas) | `false` |
| `nasgateway.replicas` | Number of NAS gateway instances to be run in parallel on a PV | `4` |
| `environment` | Set Minio server relevant environment variables in `values.yaml` file. Minio containers will be passed these variables when they start. | `MINIO_BROWSER: "on"` |
+10
View File
@@ -26,6 +26,9 @@ spec:
{{- if .Values.gcsgateway.enabled }}
replicas: {{ .Values.gcsgateway.replicas }}
{{- end }}
{{- if .Values.ossgateway.enabled }}
replicas: {{ .Values.ossgateway.replicas }}
{{- end }}
selector:
matchLabels:
app: {{ template "minio.name" . }}
@@ -62,6 +65,12 @@ spec:
"cp /tmp/config.json {{ .Values.configPath }} &&
/usr/bin/docker-entrypoint.sh minio -C {{ .Values.configPath }} gateway gcs {{ .Values.gcsgateway.projectId }}" ]
{{- else }}
{{- if .Values.ossgateway.enabled }}
command: [ "/bin/sh",
"-ce",
"cp /tmp/config.json {{ .Values.configPath }} &&
/usr/bin/docker-entrypoint.sh minio -C {{ .Values.configPath }} gateway oss {{ .Values.ossgateway.endpointURL }}" ]
{{- else }}
{{- if .Values.nasgateway.enabled }}
command: [ "/bin/sh",
"-ce",
@@ -76,6 +85,7 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- end }}
volumeMounts:
{{- if and .Values.persistence.enabled ((not .Values.gcsgateway.enabled) (not .Values.azuregateway.enabled) (not .Values.s3gateway.enabled)) }}
- name: export
+6
View File
@@ -191,6 +191,12 @@ gcsgateway:
# Google cloud project-id
projectId: ""
ossgateway:
enabled: false
# Number of parallel instances
replicas: 4
endpointURL: ""
## Use minio on NAS backend
## https://docs.minio.io/docs/minio-gateway-for-nas