Skip to content

Commit 8a62dad

Browse files
icookclaude
andcommitted
fix(kube): Update postgres volume mount for PG18 compatibility
PostgreSQL 18 Docker images changed the data directory layout to use major-version-specific subdirectories under /var/lib/postgresql. Mount point must be /var/lib/postgresql (not /data) to allow the container to manage the versioned subdirectory structure. See: docker-library/postgres#1259 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ca0d3cb commit 8a62dad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kube/app/templates/postgres.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec:
4040
name: postgres
4141
volumeMounts:
4242
- name: postgres-data
43-
mountPath: /var/lib/postgresql/data
43+
mountPath: /var/lib/postgresql
4444
readinessProbe:
4545
exec:
4646
command:

0 commit comments

Comments
 (0)