24.4.4. 配置 OpenShift Container Platform 使用 Microsoft Azure 存储
OpenShift Container Platform 可以使用持久性卷机制使用 Microsoft Azure 存储。OpenShift Container Platform 在资源组中创建磁盘,并将磁盘附加到正确的实例。
流程
当在 Ansible 清单中使用
openshift_cloudprovider_kind=azure和openshift_cloud_provider_azure配置 Azure 云供应商时,会创建以下storageclass:Copy to Clipboard Copied! Toggle word wrap Toggle overflow 如果不使用 Ansible 启用 OpenShift Container Platform 和 Microsoft Azure 集成,您可以手动创建
storageclass。如需更多信息,请参阅 动态置备和创建存储类部分。-
目前,默认的
storageclasskind 是共享的,这意味着 Microsoft Azure 实例必须使用非受管磁盘。您可以选择通过提供openshift_storageclass_parameters={'kind' 来修改实例来使用受管磁盘:'managed', 'storageaccounttype':'Premium_LRS'}或openshift_storageclass_parameters={'kind':'managed', 'storageaccounttype':安装 Ansible 清单文件中 'Standard_LRS'}变量。
注意
Microsoft Azure 磁盘是 ReadWriteOnce 访问模式,这意味着该卷可以被单一节点以读写模式挂载。如需更多信息 ,请参阅架构指南中的访问模式部分。