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

Posted February 23, 2019 7.8k views

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?

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.

Submit an Answer
4 answers

Just hit this problem as well. To help others on this issue, what you are saying is this will not work:

  "kind": "StorageClass",
  "apiVersion": "",
  "metadata": {
    "name": "do-block-storage",
  "provisioner": "",
  "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?

This would be useful. Is it supported?

Hey friend,

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