Skip to content

Commit a804130

Browse files
authored
Add optional healthcheck_port configuration (#13)
1 parent 41538c1 commit a804130

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

templates/config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ data:
1212
default_pool_size = {{ .Values.defaultPoolSize | default "10" }}
1313
min_pool_size = {{ .Values.minPoolSize | default "1" }}
1414
pooler_mode = {{ .Values.poolerMode | default "transaction" | quote }}
15+
{{- if .Values.healthcheckPort }}
16+
healthcheck_port = {{ .Values.healthcheckPort }}
17+
{{- end }}
1518
healthcheck_interval = {{ .Values.healthcheckInterval | default "30_000" }}
1619
idle_healthcheck_interval = {{ .Values.idleHealthcheckInterval | default "30_000" }}
1720
idle_healthcheck_delay = {{ .Values.idleHealthcheckDelay | default "5_000" }}

values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ image:
1616
# name: ghcr.io/pgdogdev/pgdog:main
1717
# port on which PgDog will run.
1818
port: 6432
19+
# healthcheckPort on which PgDog will expose healthcheck endpoint
20+
# (if not specified, no separate healthcheck port is configured)
21+
# healthcheckPort: 8080
1922
# replicas indicates how many instances of PgDog will run (HA).
2023
replicas: 2
2124

0 commit comments

Comments
 (0)