Public Information
This commit is contained in:
74
samples/static/pv.yaml
Normal file
74
samples/static/pv.yaml
Normal file
@@ -0,0 +1,74 @@
|
||||
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
|
||||
csi:
|
||||
driver: rook-ceph.rbd.csi.ceph.com
|
||||
fsType: ext4
|
||||
nodeStageSecretRef:
|
||||
# node stage secret name
|
||||
name: rook-csi-rbd-node
|
||||
# node stage secret namespace where above secret is created
|
||||
namespace: rook-ceph-external
|
||||
volumeAttributes:
|
||||
# Required options from storageclass parameters need to be added in volumeAttributes
|
||||
clusterID: rook-ceph-external
|
||||
pool: k-lab
|
||||
staticVolume: "true"
|
||||
imageFeatures: layering
|
||||
#mounter: rbd-nbd
|
||||
# volumeHandle should be same as rbd image name
|
||||
volumeHandle: pv-sample-static-database-data
|
||||
persistentVolumeReclaimPolicy: Delete
|
||||
# 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
|
||||
csi:
|
||||
driver: rook-ceph.rbd.csi.ceph.com
|
||||
fsType: ext4
|
||||
nodeStageSecretRef:
|
||||
# node stage secret name
|
||||
name: rook-csi-rbd-node
|
||||
# node stage secret namespace where above secret is created
|
||||
namespace: rook-ceph-external
|
||||
volumeAttributes:
|
||||
# Required options from storageclass parameters need to be added in volumeAttributes
|
||||
clusterID: rook-ceph-external
|
||||
pool: k-lab
|
||||
staticVolume: "true"
|
||||
imageFeatures: layering
|
||||
#mounter: rbd-nbd
|
||||
# volumeHandle should be same as rbd image name
|
||||
volumeHandle: pv-sample-static-nstl-data
|
||||
persistentVolumeReclaimPolicy: Delete
|
||||
# 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