Add pv and pvc

This commit is contained in:
Tyler Perkins 2024-11-03 16:21:42 -05:00
parent eaf77a165e
commit 39f6f81c26
Signed by: tyler
GPG Key ID: 03B27509E17EFDC8
2 changed files with 25 additions and 0 deletions

View 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

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: data-postgresql-pvc
namespace: postgresql
spec:
accessModes:
- ReadWriteMany
storageClassName: ""
resources:
requests:
storage: 20Gi