Merge pull request #874 from bitnami/MysqlProd

[bitnami/mysql] Enable metrics and move the scraping to the pods
This commit is contained in:
Carlos Rodríguez Hernández
2018-11-21 15:01:53 +01:00
committed by GitHub
6 changed files with 20 additions and 10 deletions
+1 -1
View File
@@ -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:
-4
View File
@@ -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:
-4
View File
@@ -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:
+1 -1
View File
@@ -243,7 +243,7 @@ slave:
failureThreshold: 3
metrics:
enabled: false
enabled: true
image:
registry: docker.io
repository: prom/mysqld-exporter