From 9d9bb7d587b3675c5937672833362d44ef8d8abd Mon Sep 17 00:00:00 2001 From: Anton Fayzrahmanov Date: Fri, 24 Aug 2018 09:46:13 +0300 Subject: [PATCH] [stable/mysql] service endpoints shouldn't depend on /metrics (#6725) * MySQL service endpoints shouldn't depend on /metrics Problem: mysqld_metrics doesn't respond on "/metrics" when dropping big database. As result service has no endpoint because metrics cann't be queried. Solution: use "/" for httpGet probes on metrics which will return only landing page with http code 200. * Update Chart.yaml --- stable/mysql/Chart.yaml | 2 +- stable/mysql/templates/deployment.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stable/mysql/Chart.yaml b/stable/mysql/Chart.yaml index ab864e918f..451b30d8b2 100755 --- a/stable/mysql/Chart.yaml +++ b/stable/mysql/Chart.yaml @@ -1,5 +1,5 @@ name: mysql -version: 0.10.0 +version: 0.10.1 appVersion: 5.7.14 description: Fast, reliable, scalable, and easy to use open-source relational database system. diff --git a/stable/mysql/templates/deployment.yaml b/stable/mysql/templates/deployment.yaml index 75c9f9eb24..3f5d07ff3e 100644 --- a/stable/mysql/templates/deployment.yaml +++ b/stable/mysql/templates/deployment.yaml @@ -145,13 +145,13 @@ spec: containerPort: 9104 livenessProbe: httpGet: - path: /metrics + path: / port: metrics initialDelaySeconds: {{ .Values.metrics.livenessProbe.initialDelaySeconds }} timeoutSeconds: {{ .Values.metrics.livenessProbe.timeoutSeconds }} readinessProbe: httpGet: - path: /metrics + path: / port: metrics initialDelaySeconds: {{ .Values.metrics.readinessProbe.initialDelaySeconds }} timeoutSeconds: {{ .Values.metrics.readinessProbe.timeoutSeconds }}