Expanding CSI volumes
You can use the Container Storage Interface (CSI) to expand storage volumes after they have already been created.
|
|
Shrinking persistent volumes (PVs) is not supported. |
-
The underlying CSI driver supports resize.
For information about which CSI drivers support resizing, see under the Additional resources section "CSI drivers supported by {product-title}".
-
Dynamic provisioning is used.
-
The controlling
StorageClassobject hasallowVolumeExpansionset totrue.For more information, see section Enabling volume expansion support.
-
For the persistent volume claim (PVC), set
.spec.resources.requests.storageto the desired new size.
-
To confirm that the resize is finished, look at the
status.conditionsfield of the PVC . {product-title} adds theResizingcondition to the PVC during expansion, which is removed after expansion completes.