From 0e3a570b85fff8b4d0dad9c80d9c3538192bc362 Mon Sep 17 00:00:00 2001 From: Daichi Mukai Date: Thu, 10 Mar 2022 04:25:36 +0900 Subject: [PATCH] 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. --- helm/minio/templates/statefulset.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/helm/minio/templates/statefulset.yaml b/helm/minio/templates/statefulset.yaml index edf730b66..bfe2aa77c 100644 --- a/helm/minio/templates/statefulset.yaml +++ b/helm/minio/templates/statefulset.yaml @@ -38,6 +38,7 @@ apiVersion: {{ template "minio.statefulset.apiVersion" . }} kind: StatefulSet metadata: name: {{ template "minio.fullname" . }} + namespace: {{ .Release.Namespace | quote }} labels: app: {{ template "minio.name" . }} chart: {{ template "minio.chart" . }}