Question

Does the Kubernetes do-block-storage StorageClass support volume expansion?

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?


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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?

Hey friend,

Sorry for the delay on this. This feature is not currently supported on our side.

Jarland