This commit is contained in:
parent
2af2b8473a
commit
e303a7403e
@ -36,14 +36,15 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/lib/postgresql/data
|
- mountPath: /var/lib/postgresql/data
|
||||||
name: postgredb
|
name: postgredb
|
||||||
volumes:
|
volumes:
|
||||||
- name: postgredb
|
- name: postgredb
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: postgres-pv-claim
|
claimName: postgres-pv-claim
|
||||||
---
|
---
|
||||||
kind: PersistentVolume
|
kind: PersistentVolume
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
|
namespace: pg
|
||||||
name: postgres-pv-volume
|
name: postgres-pv-volume
|
||||||
labels:
|
labels:
|
||||||
type: local
|
type: local
|
||||||
@ -60,6 +61,7 @@ spec:
|
|||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
|
namespace: pg
|
||||||
name: postgres-pv-claim
|
name: postgres-pv-claim
|
||||||
labels:
|
labels:
|
||||||
app: postgres
|
app: postgres
|
||||||
|
Loading…
Reference in New Issue
Block a user