diff --git a/charts/common/Chart.yaml b/charts/common/Chart.yaml index 0141f1c..2a39503 100644 --- a/charts/common/Chart.yaml +++ b/charts/common/Chart.yaml @@ -80,5 +80,5 @@ description: > type: application -version: 1.21.1 +version: 1.21.2 appVersion: 0.0.1 diff --git a/charts/common/templates/_helpers.tpl b/charts/common/templates/_helpers.tpl index 81e2133..760a4ac 100644 --- a/charts/common/templates/_helpers.tpl +++ b/charts/common/templates/_helpers.tpl @@ -176,7 +176,7 @@ livenessProbe: - "-verbose=false" - "-log_debug_stdout=true" - "-structured_logs=true" - - "-term_timeout=30s" + - "-term_timeout={{ .postgres.termTimeout | default "30s" }}" envFrom: - configMapRef: {{- if .postgres.connectionConfig }} diff --git a/charts/common/values.yaml b/charts/common/values.yaml index 5e5f39a..a6f412e 100644 --- a/charts/common/values.yaml +++ b/charts/common/values.yaml @@ -275,6 +275,11 @@ postgres: connectionConfig: # -- Override name for credentials secret. This must at least contain `PGUSER` and `PGPASSWORD`. credentialsSecret: + # -- Override the term_timeout for the Cloud SQL Proxy. Controls how long the proxy waits for + # existing connections to close after receiving SIGTERM before force-closing them. + # Increase this if your app runs long-lived jobs that need the database during pod termination. + # @default -- 30s + termTimeout: configmap: # -- Enable or disable the configmap