DataONEorg / k8s-cluster

Documentation on the DataONE Kubernetes cluster
Apache License 2.0
2 stars 1 forks source link

Enable ceph-csi dynamic PV resizing #23

Closed gothub closed 2 years ago

gothub commented 2 years ago

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.

gothub commented 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

gothub commented 2 years ago

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.