helm: add namespace to StatefulSet (#14509)

Even if we specify the target namespace by `helm install --namespace`, 
the StatefulSet is created on the default namespace. Since this resource
references the ServiceAccount created on the target namespace, pods are
hindered to be created. To avoid this, we deploy the StatefulSet to the
target namespace of helm.
This commit is contained in:
Daichi Mukai 2022-03-10 04:25:36 +09:00 committed by GitHub
parent 7060c809c0
commit 0e3a570b85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ apiVersion: {{ template "minio.statefulset.apiVersion" . }}
kind: StatefulSet kind: StatefulSet
metadata: metadata:
name: {{ template "minio.fullname" . }} name: {{ template "minio.fullname" . }}
namespace: {{ .Release.Namespace | quote }}
labels: labels:
app: {{ template "minio.name" . }} app: {{ template "minio.name" . }}
chart: {{ template "minio.chart" . }} chart: {{ template "minio.chart" . }}