By serain
Does the do-block-storage StorageClass for Kubernetes support volume expansion?
I would like to modify the size of my PVC after it has been created, without restarting my pods if possible.
If this feature is not yet available, does DO have an ETA on when there may be parity with GCE and AKS on this feature?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey friend,
Sorry for the delay on this. This feature is not currently supported on our side.
Jarland
Just hit this problem as well. To help others on this issue, what you are saying is this will not work:
{
"kind": "StorageClass",
"apiVersion": "storage.k8s.io/v1",
"metadata": {
"name": "do-block-storage",
[...]
},
"provisioner": "dobs.csi.digitalocean.com",
"reclaimPolicy": "Delete",
"volumeBindingMode": "Immediate",
"allowVolumeExpansion": true <== What you are saying is this will not work
}
I was able to increase the Droplets storage, and increase the PersistentVolume: spec/capacity/storage but not able to increase the PersistentVolumeClaim: spec/resources/storage. It produced the error:
"persistentvolumeclaims "[redacted]" is forbidden: only dynamically provisioned pvc can be resized and the storageclass that provisions the pvc must support resize".
This is because, as you said, allowVolumeExpansion, is not supported.
Other than reinstalling a new Kubernetes cluster (no snowflakes here) with new and larger storage, is there a workaround or suggested alternatives?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.