mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-21 11:06:10 +10:00
Merge pull request #874 from bitnami/MysqlProd
[bitnami/mysql] Enable metrics and move the scraping to the pods
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
name: mysql
|
||||
version: 4.1.2
|
||||
version: 4.2.0
|
||||
appVersion: 5.7.24
|
||||
description: Chart to create a Highly available MySQL cluster
|
||||
keywords:
|
||||
|
||||
@@ -26,6 +26,15 @@ spec:
|
||||
component: "master"
|
||||
release: {{ .Release.Name | quote }}
|
||||
heritage: {{ .Release.Service | quote }}
|
||||
{{- if or .Values.master.annotations .Values.metrics.enabled }}
|
||||
annotations:
|
||||
{{- if .Values.master.annotations }}
|
||||
{{ toYaml .Values.master.annotations | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.metrics.annotations }}
|
||||
{{ toYaml .Values.metrics.annotations | indent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.securityContext.enabled }}
|
||||
securityContext:
|
||||
|
||||
@@ -8,10 +8,6 @@ metadata:
|
||||
chart: {{ template "mysql.chart" . }}
|
||||
release: {{ .Release.Name | quote }}
|
||||
heritage: {{ .Release.Service | quote }}
|
||||
{{- if .Values.metrics.enabled }}
|
||||
annotations:
|
||||
{{ toYaml .Values.metrics.annotations | indent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
ports:
|
||||
|
||||
@@ -27,6 +27,15 @@ spec:
|
||||
component: "slave"
|
||||
release: {{ .Release.Name | quote }}
|
||||
heritage: {{ .Release.Service | quote }}
|
||||
{{- if or .Values.slave.annotations .Values.metrics.enabled }}
|
||||
annotations:
|
||||
{{- if .Values.slave.annotations }}
|
||||
{{ toYaml .Values.slave.annotations | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.metrics.annotations }}
|
||||
{{ toYaml .Values.metrics.annotations | indent 8 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.securityContext.enabled }}
|
||||
securityContext:
|
||||
|
||||
@@ -9,10 +9,6 @@ metadata:
|
||||
component: "slave"
|
||||
release: {{ .Release.Name | quote }}
|
||||
heritage: {{ .Release.Service | quote }}
|
||||
{{- if .Values.metrics.enabled }}
|
||||
annotations:
|
||||
{{ toYaml .Values.metrics.annotations | indent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
ports:
|
||||
|
||||
@@ -243,7 +243,7 @@ slave:
|
||||
failureThreshold: 3
|
||||
|
||||
metrics:
|
||||
enabled: false
|
||||
enabled: true
|
||||
image:
|
||||
registry: docker.io
|
||||
repository: prom/mysqld-exporter
|
||||
|
||||
Reference in New Issue
Block a user