helm: move Prometheus TLSConfig to job spec (#15739)

This commit is contained in:
Brien Dieterle 2022-10-24 08:46:41 -07:00 committed by GitHub
parent 3b7292b637
commit 2e33b99c6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,17 +80,19 @@ metadata:
{{- end }}
spec:
jobName: {{ template "minio.fullname" . }}
{{- if .Values.tls.enabled }}
tlsConfig:
ca:
secret:
name: {{ .Values.tls.certSecret }}
key: {{ .Values.tls.publicCrt }}
serverName: {{ template "minio.fullname" . }}
{{- end }}
prober:
url: {{ template "minio.fullname" . }}.{{ .Release.Namespace }}:{{ .Values.service.port }}
path: /minio/v2/metrics/cluster
{{- if .Values.tls.enabled }}
scheme: https
tlsConfig:
ca:
secret:
name: {{ .Values.tls.certSecret }}
key: {{ .Values.tls.publicCrt }}
serverName: {{ template "minio.fullname" . }}
{{ else }}
scheme: http
{{- end }}