fix: set PGDATA to subdirectory to prevent lost+found crash

This commit is contained in:
Deep Koluguri 2026-06-30 17:47:11 -04:00
parent f28fb34c6e
commit 99470cbc24
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
apiVersion: apps/v1
apiVersion: apps/v1
kind: Deployment
metadata:
name: newspaper-db
@ -23,6 +23,8 @@ spec:
value: mypassword
- name: POSTGRES_DB
value: mydatabase
- name: PGDATA
value: /var/lib/postgresql/data/pgdata
ports:
- containerPort: 5432
volumeMounts: