From 468d99620f906727886b0e365ad66878844fb095 Mon Sep 17 00:00:00 2001 From: Alan Meadows Date: Tue, 26 Jun 2018 12:05:40 -0700 Subject: [PATCH] Allow overriding some critical postgre parameters Ideally, this would completely own the postgresql.conf file that is autogenerated by the container. This should not be done without further deliberation though on what impact that may have. For now, this allows some critical items to be manipulated at installation time but does not meet the full need of complete configuration flexibility. Change-Id: I94fd3ac42398f8114c0b5c8b4ef0a6a96e530f96 --- postgresql/templates/bin/_start.sh.tpl | 2 +- postgresql/values.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/postgresql/templates/bin/_start.sh.tpl b/postgresql/templates/bin/_start.sh.tpl index 5419fe36fc..b00264d4da 100644 --- a/postgresql/templates/bin/_start.sh.tpl +++ b/postgresql/templates/bin/_start.sh.tpl @@ -18,4 +18,4 @@ limitations under the License. set -ex -exec /docker-entrypoint.sh postgres +exec /docker-entrypoint.sh postgres -N {{ .Values.conf.postgresql.max_connections }} -B {{ .Values.conf.postgresql.shared_buffers }} diff --git a/postgresql/values.yaml b/postgresql/values.yaml index d7b8c85edb..f059fcde6b 100644 --- a/postgresql/values.yaml +++ b/postgresql/values.yaml @@ -93,6 +93,11 @@ dependencies: - endpoint: internal service: local_image_registry +conf: + postgresql: + max_connections: 100 + shared_buffers: 128MB + secrets: postgresql: admin: postgresql-admin