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.第 29 章 扩展持久性卷
29.1. 启用持久性卷声明扩展 复制链接链接已复制到粘贴板!
卷扩展是技术预览功能,因此在 OpenShift Container Platform 3.9 集群中不默认启用。在某些用例中,OpenShift Container Platform 管理员可能希望启用此功能的原因。
如需红帽技术预览功能支持范围的更多信息,请参阅 https://access.redhat.com/support/offerings/techpreview/。
要允许 OpenShift Container Platform 用户扩展持久性卷声明(PVC),OpenShift Container Platform 管理员必须创建或更新将 allowVolumeExpansion
设置为 true
的 StorageClass。只有从该类创建的 PVC 可以扩展。
另外,OpenShift Container Platform 管理员必须启用 ExpandPersistentVolumes
功能标志,再打开 PersistentVolumeClaimResize
准入控制器。如需有关 PersistentVolumeClaimResize
准入控制器的更多信息,请参阅 Admission Controller。
要启用功能门,请在系统中将 ExpandPersistentVolumes
设为 true
:
在集群的所有节点上配置 node-config.yaml:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 在 master API 和控制器管理器上启用
ExpandPersistentVolumes
功能门:Copy to Clipboard Copied! Toggle word wrap Toggle overflow