This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.第 5 章 Expanding persistent volumes
5.1. Enabling volume expansion support 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Before you can expand persistent volumes, the StorageClass
object must have the allowVolumeExpansion
field set to true
.
Procedure
Edit the
StorageClass
object and add theallowVolumeExpansion
attribute. The following example demonstrates adding this line at the bottom of the storage class configuration.Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- Setting this attribute to
true
allows PVCs to be expanded after creation.