第5章 Expanding persistent volumes
Learn how to expand persistent volumes in MicroShift.
5.1. 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.
Prerequisites
- The underlying CSI driver supports resize. See "CSI drivers supported by Red Hat build of MicroShift" in the "Additional resources" section.
- Dynamic provisioning is used.
-
The controlling
StorageClassobject hasallowVolumeExpansionset totrue. For more information, see "Enabling volume expansion support."
Procedure
-
For the persistent volume claim (PVC), set
.spec.resources.requests.storageto the desired new size. -
Watch the
status.conditionsfield of the PVC to see if the resize has completed. Red Hat build of MicroShift adds theResizingcondition to the PVC during expansion, which is removed after expansion completes.