Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languageyml
titleSC parameters
collapsetrue
allowVolumeExpansion: true	# false (default) or true
volumeBindingMode:	# Immediate	# (default) or WaitForFirstConsumer
reclaimPolicy:	# Delete	# Retain (default) or Retain - Recycle not supported

Since block storage allows a single pod to mount storage, only an accessMode of type RWO (ReadWriteOnce) is allowed, when instantiating a PVC.

Teardown

To clean up all the artifacts created

Code Block
languagebash
titleTeardown
collapsetrue
$ kubectl delete -f pod.yaml	# Or whatever the application used
$ kubectl delete -n rook-ceph cephblockpools.ceph.rook.io replicapool
$ kubectl delete storageclass rook-ceph-block