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.第 3 章 扩展持久性卷
3.1. 启用卷扩展支持 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
在扩展持久性卷之前,StorageClass 的 allowVolumeExpansion
字段需要设为 true
。
流程
编辑 StorageClass,添加
allowVolumeExpansion
属性。下面的例子在 StorageClass 配置的底部添加了一行。Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- 将这个属性设置为
true
允许在创建后扩展 PVC。