...
Code Block |
---|
language | yml |
---|
title | SC parameters |
---|
collapse | true |
---|
|
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 |
---|
language | bash |
---|
title | Teardown |
---|
collapse | true |
---|
|
$ 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 |