Skip to content

Commit 3ff49b7

Browse files
committed
Add server_tls to helm charts
Adds server_tls, server certificates, and dns to the helm chart with defaults based on docs currently on the site with their same defaults.
1 parent cbf4d58 commit 3ff49b7

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

charts/pgcat/templates/secret.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ stringData:
2525
tcp_keepalives_idle = {{ .Values.configuration.general.tcp_keepalives_idle }}
2626
tcp_keepalives_count = {{ .Values.configuration.general.tcp_keepalives_count }}
2727
tcp_keepalives_interval = {{ .Values.configuration.general.tcp_keepalives_interval }}
28+
server_tls = {{ .Values.configuration.general.server_tls }}
29+
verify_server_certificate = {{ .Values.configuration.verify_server_certificate }}
30+
dns_cache_enabled = {{ .Values.configuration.general.dns_cache_enabled }}
31+
dns_max_ttl = {{ .Values.configuration.general.dns_max_ttl }}
2832
{{- if and (ne .Values.configuration.general.tls_certificate "-") (ne .Values.configuration.general.tls_private_key "-") }}
2933
tls_certificate = "{{ .Values.configuration.general.tls_certificate }}"
3034
tls_private_key = "{{ .Values.configuration.general.tls_private_key }}"

charts/pgcat/values.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,24 @@ configuration:
235235
# Number of seconds between keepalive packets.
236236
tcp_keepalives_interval: 5
237237

238+
# Enable TLS connections from PgCat to Postgres servers. Postgres has to be configured to support TLS,
239+
# which is typical to be the case for Postgres distributed via package managers.
240+
server_tls: false
241+
242+
# If server_tls is enabled, validate that the server certificate is valid. This disallows connections
243+
# for self-signed certificates which haven't been added to the root store on the machines running PgCat.
244+
verify_server_certificate: false
245+
246+
# If enabled, PgCat will resolve and cache DNS of Postgres servers, overriding default TTL provided by
247+
# system DNS servers. This is useful when using DNS for configuring traffic routing to Postgres servers:
248+
# if the IP resolved by the DNS query changed from its previously cached value, the connection pool will
249+
# be automatically recreated with connections to the new Postgres server.
250+
dns_cache_enabled: false
251+
252+
# Maximum number of seconds to keep cached DNS values. Once this timeout expires, a DNS refresh is
253+
# performed against all targets in the cache.
254+
dns_max_ttl: 30
255+
238256
## pool
239257
## configs are structured as pool.<pool_name>
240258
## the pool_name is what clients use as database name when connecting

0 commit comments

Comments
 (0)