openebs / dynamic-localpv-provisioner

Dynamically deploy Stateful Persistent Node-Local Volumes & Filesystems for Kubernetes that is provisioned from simple Local-Hostpath /root storage.
https://openebs.io
Apache License 2.0
143 stars 63 forks source link

Resizing Localpv hostpaths #205

Open D1StrX opened 1 month ago

D1StrX commented 1 month ago

Describe the problem/challenge you have While having a new storageClass with AllowVolumeExpansion: True, a storage size change of a PVC for a deployment isn't changing the size. Describing the PVC says it has the new spec, but Warning ExternalExpanding 14m volume_expand waiting for an external controller to expand this PVC

Describe the solution you'd like Allow volume expanding with dynamic-localpv-provisioner.

Environment:

niladrih commented 5 days ago

Hi @D1StrX, there is no way to get the sigs k8s library that we use to support resize. You might want to follow this doc if you're using XFS/EXT4 quota: https://github.com/openebs/dynamic-localpv-provisioner/blob/develop/docs/tutorials/hostpath/xfs_quota/modify-xfs-quota.md

Ref: https://github.com/kubernetes-sigs/sig-storage-lib-external-provisioner/issues/43

If you're not using filesystem quota, the PV doesn't really limit your workloads to the PVC's 'capacity' value. The only limitation to your workloads would be the capacity of the filesystem. You'd not need to change the PVC size to be able to write beyond the storage capacity.

D1StrX commented 5 days ago

Good to know. Not using quotas 👌