From 3591019764be8998d97cd7de26c2f40a7c31b647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Pinkava?= Date: Tue, 26 Jan 2021 01:43:25 +0100 Subject: [PATCH] [prometheus-postgres-exporter] add initialDelaySeconds configuration for probes (#612) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jiří Pinkava Co-authored-by: Jiří Pinkava --- charts/prometheus-postgres-exporter/Chart.yaml | 2 +- .../prometheus-postgres-exporter/templates/deployment.yaml | 2 ++ charts/prometheus-postgres-exporter/values.yaml | 7 +++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/charts/prometheus-postgres-exporter/Chart.yaml b/charts/prometheus-postgres-exporter/Chart.yaml index cb271f662c2d..02d6ee486db4 100644 --- a/charts/prometheus-postgres-exporter/Chart.yaml +++ b/charts/prometheus-postgres-exporter/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "0.8.0" description: A Helm chart for prometheus postgres-exporter name: prometheus-postgres-exporter -version: 1.8.0 +version: 1.9.0 home: https://github.com/wrouesnel/postgres_exporter sources: - https://github.com/wrouesnel/postgres_exporter diff --git a/charts/prometheus-postgres-exporter/templates/deployment.yaml b/charts/prometheus-postgres-exporter/templates/deployment.yaml index 3977f06c0202..f7561e4a6b6d 100644 --- a/charts/prometheus-postgres-exporter/templates/deployment.yaml +++ b/charts/prometheus-postgres-exporter/templates/deployment.yaml @@ -92,10 +92,12 @@ spec: containerPort: {{ .Values.service.targetPort }} protocol: TCP livenessProbe: + initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} httpGet: path: / port: http readinessProbe: + initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} httpGet: path: / port: http diff --git a/charts/prometheus-postgres-exporter/values.yaml b/charts/prometheus-postgres-exporter/values.yaml index 17a95efc4e4e..40ae3434cef8 100644 --- a/charts/prometheus-postgres-exporter/values.yaml +++ b/charts/prometheus-postgres-exporter/values.yaml @@ -332,6 +332,13 @@ annotations: {} podLabels: {} +# Configurable health checks +livenessProbe: + initialDelaySeconds: 0 + +readinessProbe: + initialDelaySeconds: 0 + # Init containers, e. g. for secrets creation before the exporter initContainers: [] # - name: