fix(postgres): remove memory limit and add document database

Postgres was OOMKilled repeatedly with the 600Mi limit given
shared_buffers=384MB + max_connections=300. Drop the limit entirely
for the local dev cluster (keep the 400Mi request for scheduling).

Also seed a 'document' database in initdb.sh.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-17 22:50:29 +02:00
parent eb3ca05bfb
commit 551cd3b5b5
+1 -2
View File
@@ -23,6 +23,7 @@ data:
CREATE DATABASE authz WITH OWNER postgres ENCODING utf8; CREATE DATABASE authz WITH OWNER postgres ENCODING utf8;
CREATE DATABASE company WITH OWNER postgres ENCODING utf8; CREATE DATABASE company WITH OWNER postgres ENCODING utf8;
CREATE DATABASE consumer WITH OWNER postgres ENCODING utf8; CREATE DATABASE consumer WITH OWNER postgres ENCODING utf8;
CREATE DATABASE document WITH OWNER postgres ENCODING utf8;
CREATE DATABASE employee WITH OWNER postgres ENCODING utf8; CREATE DATABASE employee WITH OWNER postgres ENCODING utf8;
CREATE DATABASE invoice WITH OWNER postgres ENCODING utf8; CREATE DATABASE invoice WITH OWNER postgres ENCODING utf8;
CREATE DATABASE notification WITH OWNER postgres ENCODING utf8; CREATE DATABASE notification WITH OWNER postgres ENCODING utf8;
@@ -62,8 +63,6 @@ spec:
resources: resources:
requests: requests:
memory: 400Mi memory: 400Mi
limits:
memory: 600Mi
ports: ports:
- containerPort: 5432 - containerPort: 5432
env: env: