Skip to content

Commit 85b018d

Browse files
authored
Add volume mount for PostgreSQL data
1 parent d79109c commit 85b018d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

k8s/portfolio/postgres/deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,10 @@ spec:
2222
envFrom:
2323
- secretRef:
2424
name: postgres-secret
25+
volumeMounts:
26+
- name: postgres-data
27+
mountPath: /var/lib/postgresql/data
28+
volumes:
29+
- name: postgres-data
30+
persistentVolumeClaim:
31+
claimName: postgres-pvc

0 commit comments

Comments
 (0)