Public Information
This commit is contained in:
45
samples/static/pv-nfs.yaml
Normal file
45
samples/static/pv-nfs.yaml
Normal file
@@ -0,0 +1,45 @@
|
||||
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
|
||||
Reference in New Issue
Block a user