File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ stringData:
25
25
tcp_keepalives_idle = {{ .Values.configuration.general.tcp_keepalives_idle }}
26
26
tcp_keepalives_count = {{ .Values.configuration.general.tcp_keepalives_count }}
27
27
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 }}
28
32
{{- if and (ne .Values.configuration.general.tls_certificate "-") (ne .Values.configuration.general.tls_private_key "-") }}
29
33
tls_certificate = "{{ .Values.configuration.general.tls_certificate }}"
30
34
tls_private_key = "{{ .Values.configuration.general.tls_private_key }}"
Original file line number Diff line number Diff line change @@ -235,6 +235,24 @@ configuration:
235
235
# Number of seconds between keepalive packets.
236
236
tcp_keepalives_interval : 5
237
237
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
+
238
256
# # pool
239
257
# # configs are structured as pool.<pool_name>
240
258
# # the pool_name is what clients use as database name when connecting
You can’t perform that action at this time.
0 commit comments