Skip to content

Commit

Permalink
[prometheus-postgres-exporter] add initialDelaySeconds configuration …
Browse files Browse the repository at this point in the history
…for probes (prometheus-community#612)

Signed-off-by: Jiří Pinkava <[email protected]>

Co-authored-by: Jiří Pinkava <[email protected]>
  • Loading branch information
pinkavaj and jiri-pinkava authored Jan 26, 2021
1 parent d7b18c4 commit 3591019
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-postgres-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions charts/prometheus-postgres-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions charts/prometheus-postgres-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3591019

Please sign in to comment.