local-path-provisioner
local-path-provisioner copied to clipboard
Does the local-path storageclass support AllowVolumeExpansion or dynamic resize/expansion the PVC?
If it support, could you please figure out how to do this? I have a try to edit the local-path storageclass to add the below:
allowVolumeExpansion: true
then I edit the PVC created from local-path storageclass to update the spec.resources.requests.storage to larger size, edit successfully but the capacity size is not change/expansion, any mistake here?
Thanks a lot!
I may be wrong, but this is ignored when using in PV. Also, briefly looking at source, I did not find any reconciliation mechanism in local-path-provisioner when a storageClass is updated which indicates this is not updated.
Local Path Provisioner doesn't take PVC size into consideration, since it's backed by a directory on the node. So there is no quota/enforcement for the volume size.
@yasker Sorry for my ignorance, but does it mean when I request 1G my database or so can also have 5G?
@yasker Sorry for my ignorance, but does it mean when I request 1G my database or so can also have 5G?
it means that it can have up to the full storage capacity of the node the volume is created on