diff --git a/postgres/justfile b/postgres/justfile index 53fe921..33c076d 100644 --- a/postgres/justfile +++ b/postgres/justfile @@ -4,6 +4,7 @@ export CNPG_NAMESPACE := env("CNPG_NAMESPACE", "postgres") export CNPG_CHART_VERSION := env("CNPG_CHART_VERSION", "0.26.0") export CNPG_CLUSTER_CHART_VERSION := env("CNPG_CLUSTER_CHART_VERSION", "0.3.1") export POSTGRES_STORAGE_SIZE := env("POSTGRES_STORAGE_SIZE", "20Gi") +export POSTGRES_MAX_CONNECTIONS := env("POSTGRES_MAX_CONNECTIONS", "200") export K8S_VAULT_NAMESPACE := env("K8S_VAULT_NAMESPACE", "vault") export EXTERNAL_SECRETS_NAMESPACE := env("EXTERNAL_SECRETS_NAMESPACE", "external-secrets") diff --git a/postgres/postgres-cluster-values.gomplate.yaml b/postgres/postgres-cluster-values.gomplate.yaml index 1d0eb40..b0da714 100644 --- a/postgres/postgres-cluster-values.gomplate.yaml +++ b/postgres/postgres-cluster-values.gomplate.yaml @@ -5,6 +5,11 @@ cluster: storage: size: {{ .Env.POSTGRES_STORAGE_SIZE }} + # PostgreSQL configuration + postgresql: + parameters: + max_connections: {{ .Env.POSTGRES_MAX_CONNECTIONS | quote }} + initdb: postInitTemplateSQL: - CREATE EXTENSION IF NOT EXISTS vector;