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.7.18.11.3. 在 CLI 中编辑 kubevirt-storage-class-defaults 配置映射
通过编辑 openshift-cnv 命名空间中的 kubevirt-storage-class-defaults 配置映射来修改数据卷的存储设置。您还可以为其他存储类添加设置,以便在 Web 控制台中为不同的存储类型创建数据卷。
注意
您必须配置底层存储支持的存储设置。
流程
运行以下命令来编辑配置映射:
oc edit configmap kubevirt-storage-class-defaults -n openshift-cnv
$ oc edit configmap kubevirt-storage-class-defaults -n openshift-cnvCopy to Clipboard Copied! Toggle word wrap Toggle overflow 更新配置映射的
data值:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 保存并退出编辑器以更新配置映射。