Add pv and pvc
This commit is contained in:
parent
eaf77a165e
commit
39f6f81c26
13
cluster/postgresql/pgsql-pv.yaml
Normal file
13
cluster/postgresql/pgsql-pv.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: data-postgresql-pv
|
||||
namespace: postgresql-ns
|
||||
spec:
|
||||
capacity:
|
||||
storage: 20Gi
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
nfs:
|
||||
path: /volume1/tank/database
|
||||
server: 10.0.3.5
|
12
cluster/postgresql/pgsql-pvc.yaml
Normal file
12
cluster/postgresql/pgsql-pvc.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: data-postgresql-pvc
|
||||
namespace: postgresql
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
storageClassName: ""
|
||||
resources:
|
||||
requests:
|
||||
storage: 20Gi
|
Loading…
Reference in New Issue
Block a user