46 lines
1.6 KiB
YAML
46 lines
1.6 KiB
YAML
apiVersion: v1
|
|
kind: PersistentVolume
|
|
metadata:
|
|
name: pv-sample-static-database-data
|
|
spec:
|
|
# -- set an empty string must be explicitly set otherwise default StorageClass will be set
|
|
# see https://kubernetes.io/docs/concepts/storage/persistent-volumes/
|
|
storageClassName: ""
|
|
# -- make sure, this PV may only by bound to a specific claim
|
|
claimRef:
|
|
name: sample-static-database-data
|
|
namespace: lab
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
capacity:
|
|
storage: 50Gi
|
|
nfs:
|
|
path: /exports/k8s/sample-static-database-data
|
|
server: 10.14.5.4
|
|
persistentVolumeReclaimPolicy: Retain
|
|
# The volumeMode can be either `Filesystem` or `Block` if you are creating Filesystem PVC it should be `Filesystem`, if you are creating Block PV you need to change it to `Block`
|
|
volumeMode: Filesystem
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolume
|
|
metadata:
|
|
name: pv-sample-static-nstl-data
|
|
spec:
|
|
# -- set an empty string must be explicitly set otherwise default StorageClass will be set
|
|
# see https://kubernetes.io/docs/concepts/storage/persistent-volumes/
|
|
storageClassName: ""
|
|
# -- make sure, this PV may only by bound to a specific claim
|
|
claimRef:
|
|
name: sample-static-nstl-data
|
|
namespace: lab
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
capacity:
|
|
storage: 50Gi
|
|
nfs:
|
|
path: /exports/k8s/sample-static-database-data
|
|
server: 10.14.5.4
|
|
persistentVolumeReclaimPolicy: Retain
|
|
# The volumeMode can be either `Filesystem` or `Block` if you are creating Filesystem PVC it should be `Filesystem`, if you are creating Block PV you need to change it to `Block`
|
|
volumeMode: Filesystem
|