From f0a82f85deac01e5fe105047bcaffb0d603926fb Mon Sep 17 00:00:00 2001 From: Lance Walters Date: Sat, 21 Nov 2026 17:58:33 -0500 Subject: [PATCH] apps(osint): set PGDATABASE=osint_data on osint-db deploy/osint-db logged 'FATAL: database "osint" does not exist' straight after it became ready (2026-11-21 22:15:15): any bare `psql -U osint` / `pg_dump -U osint` inside the pod defaults the database to the user name. PGDATABASE makes osint_data the default so ops commands cannot aim at a database that does not exist. Probes already pass -d osint_data. --- apps/base/osint/postgres-deployment.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/base/osint/postgres-deployment.yaml b/apps/base/osint/postgres-deployment.yaml index 3f37a54..dd4a051 100644 --- a/apps/base/osint/postgres-deployment.yaml +++ b/apps/base/osint/postgres-deployment.yaml @@ -60,6 +60,12 @@ spec: value: osint - name: POSTGRES_DB value: osint_data + # Bare `psql`/`pg_dump -U osint` inside this pod would otherwise + # default the database to the USER name and log + # `FATAL: database "osint" does not exist` (seen 2026-11-21 22:15 + # on deploy/osint-db). PGDATABASE makes the correct db the default. + - name: PGDATABASE + value: osint_data - name: PGDATA value: /var/lib/postgresql/data/pgdata - name: POSTGRES_PASSWORD -- 2.52.0