Closed gothub closed 2 years ago
The sample [RBD storage class file](https://github.com/DataONEorg/k8s-cluster/blob/main/storage/Ceph/RBD/dynamic/csi-rbd-sc.yaml was updated to enable dynamic resizing.
The docs show an example: https://github.com/DataONEorg/k8s-cluster/blob/main/storage/Ceph/Ceph-CSI-RBD.md
Note that a resizable storage class has been setup for production k8s:
$ kubectl get sc
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
csi-rbd-sc rbd.csi.ceph.com Retain Immediate true 4
The SC for dev k8s has not been changed, as apps are currently using it.
I can try modifying it in-place if desired.
Ceph-csi supports dynamic resizing of dynamically provisioned persistent volumes, as described here.
The only modification needed is to enable
allowVolumeExpansion
in the storage class definition.I'll test this in dev k8s and post results here.