From 551cd3b5b5bcfc54eb7ab2d8f48c8148b0e2f068 Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Fri, 17 Apr 2026 22:50:29 +0200 Subject: [PATCH] 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) --- k8s/infra/postgres.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/k8s/infra/postgres.yaml b/k8s/infra/postgres.yaml index 3004f75..786c3d0 100644 --- a/k8s/infra/postgres.yaml +++ b/k8s/infra/postgres.yaml @@ -23,6 +23,7 @@ data: CREATE DATABASE authz WITH OWNER postgres ENCODING utf8; CREATE DATABASE company 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 invoice WITH OWNER postgres ENCODING utf8; CREATE DATABASE notification WITH OWNER postgres ENCODING utf8; @@ -62,8 +63,6 @@ spec: resources: requests: memory: 400Mi - limits: - memory: 600Mi ports: - containerPort: 5432 env: