diff --git a/helm/minio/Chart.yaml b/helm/minio/Chart.yaml index 3c6915ef9..f267c46b9 100644 --- a/helm/minio/Chart.yaml +++ b/helm/minio/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Multi-Cloud Object Storage name: minio -version: 3.1.2 +version: 3.1.3 appVersion: RELEASE.2021-09-09T21-37-07Z keywords: - minio diff --git a/helm/minio/templates/deployment.yaml b/helm/minio/templates/deployment.yaml index b69473de7..07617aaa6 100644 --- a/helm/minio/templates/deployment.yaml +++ b/helm/minio/templates/deployment.yaml @@ -91,6 +91,10 @@ spec: secretKeyRef: name: {{ template "minio.secretName" . }} key: rootPassword + {{- if .Values.metrics.serviceMonitor.public }} + - name: MINIO_PROMETHEUS_AUTH_TYPE + value: "public" + {{- end}} {{- range $key, $val := .Values.environment }} - name: {{ $key }} value: {{ $val | quote }} diff --git a/helm/minio/templates/gateway-deployment.yaml b/helm/minio/templates/gateway-deployment.yaml index 5196380b1..b55118f31 100644 --- a/helm/minio/templates/gateway-deployment.yaml +++ b/helm/minio/templates/gateway-deployment.yaml @@ -91,6 +91,10 @@ spec: secretKeyRef: name: {{ template "minio.secretName" . }} key: rootPassword + {{- if .Values.metrics.serviceMonitor.public }} + - name: MINIO_PROMETHEUS_AUTH_TYPE + value: "public" + {{- end}} {{- range $key, $val := .Values.environment }} - name: {{ $key }} value: {{ $val | quote }} diff --git a/helm/minio/templates/post-install-create-bucket-job.yaml b/helm/minio/templates/post-install-create-bucket-job.yaml index 88dc2cd22..88ac2d10a 100644 --- a/helm/minio/templates/post-install-create-bucket-job.yaml +++ b/helm/minio/templates/post-install-create-bucket-job.yaml @@ -32,13 +32,13 @@ spec: {{- include "minio.imagePullSecrets" . | indent 6 }} {{- if .Values.nodeSelector }} nodeSelector: -{{ toYaml .Values.nodeSelector | indent 8 }} +{{ toYaml .Values.makeBucketJob.nodeSelector | indent 8 }} {{- end }} -{{- with .Values.affinity }} +{{- with .Values.makeBucketJob.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} -{{- with .Values.tolerations }} +{{- with .Values.makeBucketJob.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} diff --git a/helm/minio/templates/post-install-create-user-job.yaml b/helm/minio/templates/post-install-create-user-job.yaml index c55febca2..b94cde959 100644 --- a/helm/minio/templates/post-install-create-user-job.yaml +++ b/helm/minio/templates/post-install-create-user-job.yaml @@ -32,13 +32,13 @@ spec: {{- include "minio.imagePullSecrets" . | indent 6 }} {{- if .Values.nodeSelector }} nodeSelector: -{{ toYaml .Values.nodeSelector | indent 8 }} +{{ toYaml .Values.makeUserJob.nodeSelector | indent 8 }} {{- end }} -{{- with .Values.affinity }} +{{- with .Values.makeUserJob.affinity }} affinity: {{ toYaml . | indent 8 }} {{- end }} -{{- with .Values.tolerations }} +{{- with .Values.makeUserJob.tolerations }} tolerations: {{ toYaml . | indent 8 }} {{- end }} diff --git a/helm/minio/templates/statefulset.yaml b/helm/minio/templates/statefulset.yaml index 40a71a096..babf82e0e 100644 --- a/helm/minio/templates/statefulset.yaml +++ b/helm/minio/templates/statefulset.yaml @@ -127,7 +127,7 @@ spec: secretKeyRef: name: {{ template "minio.secretName" . }} key: rootPassword - {{- if .Values.metrics.podMonitor.public }} + {{- if .Values.metrics.serviceMonitor.public }} - name: MINIO_PROMETHEUS_AUTH_TYPE value: "public" {{- end}} diff --git a/helm/minio/values.yaml b/helm/minio/values.yaml index 9f5cc0033..dc6b449c3 100644 --- a/helm/minio/values.yaml +++ b/helm/minio/values.yaml @@ -269,6 +269,9 @@ makeUserJob: resources: requests: memory: 128Mi + nodeSelector: {} + tolerations: [] + affinity: {} ## List of buckets to be created after minio install ## @@ -300,6 +303,9 @@ makeBucketJob: resources: requests: memory: 128Mi + nodeSelector: {} + tolerations: [] + affinity: {} ## Use this field to add environment variables relevant to MinIO server. These fields will be passed on to MinIO container(s) ## when Chart is deployed