add service monitor support and service account support

This commit is contained in:
Harshavardhana 2021-09-12 11:19:27 -07:00
parent c2f25b6f62
commit 410b8dd0fd
6 changed files with 102 additions and 16 deletions

Binary file not shown.

View File

@ -1,8 +1,8 @@
apiVersion: v1 apiVersion: v1
description: Multi-Cloud Object Storage description: Multi-Cloud Object Storage
name: minio name: minio
version: 3.0.2 version: 3.1.0
appVersion: RELEASE.2021-09-03T03-56-13Z appVersion: RELEASE.2021-09-09T21-37-07Z
keywords: keywords:
- minio - minio
- storage - storage

View File

@ -0,0 +1,7 @@
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "minio.serviceAccountName" . | quote }}
namespace: {{ .Release.Namespace | quote }}
{{- end -}}

View File

@ -0,0 +1,41 @@
{{- if .Values.metrics.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ template "minio.fullname" . }}
{{- if .Values.metrics.serviceMonitor.namespace }}
namespace: {{ .Values.metrics.serviceMonitor.namespace }}
{{- end }}
labels:
app: {{ template "minio.name" . }}
chart: {{ template "minio.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.metrics.serviceMonitor.additionalLabels }}
{{ toYaml .Values.metrics.serviceMonitor.additionalLabels | indent 4 }}
{{- end }}
spec:
endpoints:
{{- if .Values.tls.enabled }}
- port: https
{{ else }}
- port: http
{{- end }}
path: /minio/v2/metrics/cluster
{{- if .Values.metrics.serviceMonitor.interval }}
interval: {{ .Values.metrics.serviceMonitor.interval }}
{{- end }}
{{- if .Values.metrics.serviceMonitor.scrapeTimeout }}
scrapeTimeout: {{ .Values.metrics.serviceMonitor.scrapeTimeout }}
{{- end }}
bearerTokenSecret:
name: {{ template "minio.fullname" . }}-prometheus
key: token
namespaceSelector:
matchNames:
- {{ .Release.Namespace | quote }}
selector:
matchLabels:
app: {{ include "minio.name" . }}
release: {{ .Release.Name }}
{{- end }}

View File

@ -14,7 +14,7 @@ clusterDomain: cluster.local
## ##
image: image:
repository: quay.io/minio/minio repository: quay.io/minio/minio
tag: RELEASE.2021-08-31T05-46-54Z tag: RELEASE.2021-09-09T21-37-07Z
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
imagePullSecrets: [] imagePullSecrets: []
@ -25,7 +25,7 @@ imagePullSecrets: []
## ##
mcImage: mcImage:
repository: quay.io/minio/mc repository: quay.io/minio/mc
tag: RELEASE.2021-07-27T06-46-19Z tag: RELEASE.2021-09-02T09-21-27Z
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
## minio mode, i.e. standalone or distributed or gateway (nas) ## minio mode, i.e. standalone or distributed or gateway (nas)
@ -318,3 +318,19 @@ networkPolicy:
podDisruptionBudget: podDisruptionBudget:
enabled: false enabled: false
maxUnavailable: 1 maxUnavailable: 1
## Specify the service account to use for the Minio pods. If 'create' is set to 'false'
## and 'name' is left unspecified, the account 'default' will be used.
serviceAccount:
create: true
## The name of the service account to use. If 'create' is 'true', a service account with that name
## will be created. Otherwise, a name will be auto-generated.
name:
metrics:
serviceMonitor:
enabled: false
additionalLabels: {}
# namespace: monitoring
# interval: 30s
# scrapeTimeout: 10s

View File

@ -1,9 +1,31 @@
apiVersion: v1 apiVersion: v1
entries: entries:
minio: minio:
- apiVersion: v1
appVersion: RELEASE.2021-09-09T21-37-07Z
created: "2021-09-12T11:19:04.392323038-07:00"
description: Multi-Cloud Object Storage
digest: 6c01af55d2e2e5f716eabf6fef3a92a8464d0674529e9bacab292e5478a73b7a
home: https://min.io
icon: https://min.io/resources/img/logo/MINIO_wordmark.png
keywords:
- minio
- storage
- object-storage
- s3
- cluster
maintainers:
- email: dev@minio.io
name: MinIO, Inc
name: minio
sources:
- https://github.com/minio/minio
urls:
- https://charts.min.io/helm-releases/minio-3.1.0.tgz
version: 3.1.0
- apiVersion: v1 - apiVersion: v1
appVersion: RELEASE.2021-09-03T03-56-13Z appVersion: RELEASE.2021-09-03T03-56-13Z
created: "2021-09-03T01:09:29.388403323-07:00" created: "2021-09-12T11:19:04.390968556-07:00"
description: Multi-Cloud Object Storage description: Multi-Cloud Object Storage
digest: 18e10be4d0458bc590ca9abf753227e0c70f60511495387b8d4fb15a4daf932e digest: 18e10be4d0458bc590ca9abf753227e0c70f60511495387b8d4fb15a4daf932e
home: https://min.io home: https://min.io
@ -25,7 +47,7 @@ entries:
version: 3.0.2 version: 3.0.2
- apiVersion: v1 - apiVersion: v1
appVersion: RELEASE.2021-08-31T05-46-54Z appVersion: RELEASE.2021-08-31T05-46-54Z
created: "2021-09-03T01:09:29.387118116-07:00" created: "2021-09-12T11:19:04.389678441-07:00"
description: Multi-Cloud Object Storage description: Multi-Cloud Object Storage
digest: f5b6e7f6272a9e71aef3b75555f6f756a39eef65cb78873f26451dba79b19906 digest: f5b6e7f6272a9e71aef3b75555f6f756a39eef65cb78873f26451dba79b19906
home: https://min.io home: https://min.io
@ -47,7 +69,7 @@ entries:
version: 3.0.1 version: 3.0.1
- apiVersion: v1 - apiVersion: v1
appVersion: RELEASE.2021-08-31T05-46-54Z appVersion: RELEASE.2021-08-31T05-46-54Z
created: "2021-09-03T01:09:29.385781377-07:00" created: "2021-09-12T11:19:04.388380941-07:00"
description: Multi-Cloud Object Storage description: Multi-Cloud Object Storage
digest: 6d2ee1336c412affaaf209fdb80215be2a6ebb23ab2443adbaffef9e7df13fab digest: 6d2ee1336c412affaaf209fdb80215be2a6ebb23ab2443adbaffef9e7df13fab
home: https://min.io home: https://min.io
@ -69,7 +91,7 @@ entries:
version: 3.0.0 version: 3.0.0
- apiVersion: v1 - apiVersion: v1
appVersion: RELEASE.2021-08-31T05-46-54Z appVersion: RELEASE.2021-08-31T05-46-54Z
created: "2021-09-03T01:09:29.384488334-07:00" created: "2021-09-12T11:19:04.387107114-07:00"
description: Multi-Cloud Object Storage description: Multi-Cloud Object Storage
digest: 0a004aaf5bb61deed6a5c88256d1695ebe2f9ff1553874a93e4acfd75e8d339b digest: 0a004aaf5bb61deed6a5c88256d1695ebe2f9ff1553874a93e4acfd75e8d339b
home: https://min.io home: https://min.io
@ -89,7 +111,7 @@ entries:
version: 2.0.1 version: 2.0.1
- apiVersion: v1 - apiVersion: v1
appVersion: RELEASE.2021-08-25T00-41-18Z appVersion: RELEASE.2021-08-25T00-41-18Z
created: "2021-09-03T01:09:29.383253644-07:00" created: "2021-09-12T11:19:04.385844548-07:00"
description: Multi-Cloud Object Storage description: Multi-Cloud Object Storage
digest: fcd944e837ee481307de6aa3d387ea18c234f995a84c15abb211aab4a4054afc digest: fcd944e837ee481307de6aa3d387ea18c234f995a84c15abb211aab4a4054afc
home: https://min.io home: https://min.io
@ -109,7 +131,7 @@ entries:
version: 2.0.0 version: 2.0.0
- apiVersion: v1 - apiVersion: v1
appVersion: RELEASE.2021-08-25T00-41-18Z appVersion: RELEASE.2021-08-25T00-41-18Z
created: "2021-09-03T01:09:29.381940948-07:00" created: "2021-09-12T11:19:04.384569874-07:00"
description: Multi-Cloud Object Storage description: Multi-Cloud Object Storage
digest: 7b6c033d43a856479eb493ab8ca05b230f77c3e42e209e8f298fac6af1a9796f digest: 7b6c033d43a856479eb493ab8ca05b230f77c3e42e209e8f298fac6af1a9796f
home: https://min.io home: https://min.io
@ -129,7 +151,7 @@ entries:
version: 1.0.5 version: 1.0.5
- apiVersion: v1 - apiVersion: v1
appVersion: RELEASE.2021-08-25T00-41-18Z appVersion: RELEASE.2021-08-25T00-41-18Z
created: "2021-09-03T01:09:29.380699554-07:00" created: "2021-09-12T11:19:04.383255887-07:00"
description: Multi-Cloud Object Storage description: Multi-Cloud Object Storage
digest: abd221245ace16c8e0c6c851cf262d1474a5219dcbf25c4b2e7b77142f9c59ed digest: abd221245ace16c8e0c6c851cf262d1474a5219dcbf25c4b2e7b77142f9c59ed
home: https://min.io home: https://min.io
@ -149,7 +171,7 @@ entries:
version: 1.0.4 version: 1.0.4
- apiVersion: v1 - apiVersion: v1
appVersion: RELEASE.2021-08-20T18-32-01Z appVersion: RELEASE.2021-08-20T18-32-01Z
created: "2021-09-03T01:09:29.379449808-07:00" created: "2021-09-12T11:19:04.382000377-07:00"
description: Multi-Cloud Object Storage description: Multi-Cloud Object Storage
digest: 922a333f5413d1042f7aa81929f43767f6ffca9b260c46713f04ce1dda86d57d digest: 922a333f5413d1042f7aa81929f43767f6ffca9b260c46713f04ce1dda86d57d
home: https://min.io home: https://min.io
@ -169,7 +191,7 @@ entries:
version: 1.0.3 version: 1.0.3
- apiVersion: v1 - apiVersion: v1
appVersion: RELEASE.2021-08-20T18-32-01Z appVersion: RELEASE.2021-08-20T18-32-01Z
created: "2021-09-03T01:09:29.378188621-07:00" created: "2021-09-12T11:19:04.380754338-07:00"
description: High Performance, Kubernetes Native Object Storage description: High Performance, Kubernetes Native Object Storage
digest: 10e22773506bbfb1c66442937956534cf4057b94f06a977db78b8cd223588388 digest: 10e22773506bbfb1c66442937956534cf4057b94f06a977db78b8cd223588388
home: https://min.io home: https://min.io
@ -189,7 +211,7 @@ entries:
version: 1.0.2 version: 1.0.2
- apiVersion: v1 - apiVersion: v1
appVersion: RELEASE.2021-08-20T18-32-01Z appVersion: RELEASE.2021-08-20T18-32-01Z
created: "2021-09-03T01:09:29.376910712-07:00" created: "2021-09-12T11:19:04.37949583-07:00"
description: High Performance, Kubernetes Native Object Storage description: High Performance, Kubernetes Native Object Storage
digest: ef86ab6df23d6942705da9ef70991b649638c51bc310587d37a425268ba4a06c digest: ef86ab6df23d6942705da9ef70991b649638c51bc310587d37a425268ba4a06c
home: https://min.io home: https://min.io
@ -209,7 +231,7 @@ entries:
version: 1.0.1 version: 1.0.1
- apiVersion: v1 - apiVersion: v1
appVersion: RELEASE.2021-08-17T20-53-08Z appVersion: RELEASE.2021-08-17T20-53-08Z
created: "2021-09-03T01:09:29.375397146-07:00" created: "2021-09-12T11:19:04.377853307-07:00"
description: High Performance, Kubernetes Native Object Storage description: High Performance, Kubernetes Native Object Storage
digest: 1add7608692cbf39aaf9b1252530e566f7b2f306a14e390b0f49b97a20f2b188 digest: 1add7608692cbf39aaf9b1252530e566f7b2f306a14e390b0f49b97a20f2b188
home: https://min.io home: https://min.io
@ -227,4 +249,4 @@ entries:
urls: urls:
- https://charts.min.io/helm-releases/minio-1.0.0.tgz - https://charts.min.io/helm-releases/minio-1.0.0.tgz
version: 1.0.0 version: 1.0.0
generated: "2021-09-03T01:09:28.813520489-07:00" generated: "2021-09-12T11:19:03.811011321-07:00"