mirror of https://github.com/minio/minio.git
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:
parent
7060c809c0
commit
0e3a570b85
|
@ -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" . }}
|
||||||
|
|
Loading…
Reference in New Issue