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

February 23, 2019 771 views
Kubernetes Storage

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?

3 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": "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?

This would be useful. Is it supported?

Hey friend,

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

Jarland

Have another answer? Share your knowledge.