mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/minio] Support for Minio GCS gateway (#4668)
* support for using minio as GCS gateway * increment of version number * bump minor version
This commit is contained in:
committed by
k8s-ci-robot
parent
85100f6d3e
commit
b3ba2c36f7
@@ -1,7 +1,7 @@
|
||||
apiVersion: v1
|
||||
description: Distributed object storage server built for cloud applications and devops.
|
||||
name: minio
|
||||
version: 1.0.1
|
||||
version: 1.1.0
|
||||
appVersion: RELEASE.2018-03-16T22-52-12Z
|
||||
keywords:
|
||||
- storage
|
||||
|
||||
@@ -104,6 +104,11 @@ The following tables lists the configurable parameters of the Minio chart and th
|
||||
| `defaultBucket.policy` | Bucket policy | `none` |
|
||||
| `defaultBucket.purge` | Purge the bucket if already exists | `false` |
|
||||
| `azuregateway.enabled` | Use minio as an [azure gateway](https://docs.minio.io/docs/minio-gateway-for-azure)| `false` |
|
||||
| `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 | `""`
|
||||
|
|
||||
|
||||
Some of the parameters above map to the env variables defined in the [Minio DockerHub image](https://hub.docker.com/r/minio/minio/).
|
||||
|
||||
|
||||
@@ -30,12 +30,16 @@ spec:
|
||||
{{- if .Values.azuregateway.enabled }}
|
||||
args: ["gateway", "azure"]
|
||||
{{- else }}
|
||||
{{- if .Values.gcsgateway.enabled }}
|
||||
args: ["gateway", "gcs", "{{ .Values.gcsgateway.projectId }}"]
|
||||
{{- else }}
|
||||
{{- if .Values.configPath }}
|
||||
args: ["-C", "{{ .Values.configPath }}", "server", "{{ .Values.mountPath }}"]
|
||||
{{- else }}
|
||||
args: ["server", "{{ .Values.mountPath }}"]
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
volumeMounts:
|
||||
- name: export
|
||||
mountPath: {{ .Values.mountPath }}
|
||||
@@ -51,6 +55,11 @@ spec:
|
||||
- name: podinfo
|
||||
mountPath: /podinfo
|
||||
readOnly: false
|
||||
{{- if .Values.gcsgateway.enabled }}
|
||||
- name: minio-user
|
||||
mountPath: "/etc/credentials"
|
||||
readOnly: true
|
||||
{{- end }}
|
||||
ports:
|
||||
- name: service
|
||||
containerPort: 9000
|
||||
@@ -65,6 +74,10 @@ spec:
|
||||
secretKeyRef:
|
||||
name: {{ template "minio.fullname" . }}
|
||||
key: secretkey
|
||||
{{- if .Values.gcsgateway.enabled }}
|
||||
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||
value: "/etc/credentials/gcs_key.json"
|
||||
{{- end }}
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: 9000
|
||||
|
||||
@@ -11,3 +11,6 @@ type: Opaque
|
||||
data:
|
||||
accesskey: {{ .Values.accessKey | b64enc }}
|
||||
secretkey: {{ .Values.secretKey | b64enc }}
|
||||
{{- if .Values.gcsgateway.enabled }}
|
||||
gcs_key.json: {{ .Values.gcsgateway.gcsKeyJson | b64enc }}
|
||||
{{- end }}
|
||||
@@ -100,6 +100,16 @@ defaultBucket:
|
||||
azuregateway:
|
||||
enabled: false
|
||||
|
||||
## Use minio as GCS (Google Cloud Storage) gateway, you should disable data persistence so no volume claim are created.
|
||||
## https://docs.minio.io/docs/minio-gateway-for-gcs
|
||||
|
||||
gcsgateway:
|
||||
enabled: false
|
||||
# credential json file of service account key
|
||||
gcsKeyJson: ""
|
||||
# Google cloud project-id
|
||||
projectId: ""
|
||||
|
||||
## https://docs.minio.io/docs/minio-bucket-notification-guide
|
||||
##
|
||||
minioConfig:
|
||||
|
||||
Reference in New Issue
Block a user