From 71bc3633cd39d78c52cb85199829476ed653e262 Mon Sep 17 00:00:00 2001 From: Maxime Guyot Date: Tue, 4 Sep 2018 21:42:23 +0200 Subject: [PATCH] Add liveness and readiness probes to postgre_exporter (#7502) Signed-off-by: Maxime Guyot --- stable/postgresql/Chart.yaml | 2 +- stable/postgresql/templates/deployment.yaml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/stable/postgresql/Chart.yaml b/stable/postgresql/Chart.yaml index cd6373effa..95cd851179 100644 --- a/stable/postgresql/Chart.yaml +++ b/stable/postgresql/Chart.yaml @@ -1,5 +1,5 @@ name: postgresql -version: 0.17.0 +version: 0.18.0 appVersion: 9.6.2 description: Object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance. keywords: diff --git a/stable/postgresql/templates/deployment.yaml b/stable/postgresql/templates/deployment.yaml index f26d256317..9e4a60dc84 100644 --- a/stable/postgresql/templates/deployment.yaml +++ b/stable/postgresql/templates/deployment.yaml @@ -138,6 +138,14 @@ spec: mountPath: /conf readOnly: true {{- end }} + livenessProbe: + httpGet: + path: /metrics + port: metrics + readinessProbe: + httpGet: + path: /metrics + port: metrics resources: {{ toYaml .Values.metrics.resources | indent 10 }} {{- end }}