mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/minio] Fix minio cannot create bucket (#5658)
Running `helm install --set "accessKey=$minioaccesskey,secretKey=$miniosecretaccesskey,defaultBucket.enabled=true,defaultBucket.name=$minio_bucket_name,defaultBucket.purge=true" ./minio` was failing with a `can't open '/config/initialize'` error message. The `/config/initialize` script is the entrypoint for the `post-install-create-bucket-job`. The `initialize` script comes from the `minio` configmap. This `configmap` was deleted in https://github.com/kubernetes/charts/pull/4277, because it also included the `config.json`. Mounting the `config.json` was causing issues with `minio` because Kubernetes switched to having all `ConfigMap` mounts be readonly. However, there is no issue with the `/config/initialize` script being read only, so I added back the `configmap` with just the `initialize` data. I verified that the above `helm install` command works does not result in a crash loop.
This commit is contained in:
committed by
k8s-ci-robot
parent
7a7c8ef343
commit
c02becfca0
@@ -1,7 +1,7 @@
|
||||
apiVersion: v1
|
||||
description: Distributed object storage server built for cloud applications and devops.
|
||||
name: minio
|
||||
version: 1.3.2
|
||||
version: 1.3.3
|
||||
appVersion: RELEASE.2018-04-27T23-33-52Z
|
||||
keywords:
|
||||
- storage
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ template "minio.fullname" . }}
|
||||
labels:
|
||||
app: {{ template "minio.name" . }}
|
||||
chart: {{ template "minio.chart" . }}
|
||||
release: {{ .Release.Name }}
|
||||
heritage: {{ .Release.Service }}
|
||||
data:
|
||||
initialize: |-
|
||||
{{ include (print $.Template.BasePath "/_helper_create_bucket.txt") . | indent 4 }}
|
||||
@@ -27,6 +27,8 @@ spec:
|
||||
- name: minio-configuration
|
||||
projected:
|
||||
sources:
|
||||
- configMap:
|
||||
name: {{ template "minio.fullname" . }}
|
||||
- secret:
|
||||
name: {{ template "minio.fullname" . }}
|
||||
containers:
|
||||
|
||||
Reference in New Issue
Block a user