第 5 章 在 OpenShift 上为分布式区存储准备 Red Hat OpenStack Services


要在 OpenShift (RHOSO)环境中为分布式区域中 Red Hat Ceph Storage 或第三方存储准备 Red Hat OpenStack Services,您必须创建 Secret 自定义资源(CR)来存储每个区的存储凭证。

您必须创建 Secret 自定义资源(CR)来存储部署中的每个区域的 Red Hat Ceph Storage 集群凭证。默认区域 Zone 1 需要访问所有区域中的 Red Hat Ceph Storage 集群。其他区域需要访问其本地 Red Hat Ceph Storage 集群和默认区域中的 Red Hat Ceph Storage 集群。为每个区创建一个 Secret CR。

流程

  1. 为默认区 Zone 1 创建一个 Secret CR,名为 ceph-conf-files-az1,其中包含所有区域的 Red Hat Ceph Storage 集群密钥环和 conf 文件:

    $ oc create secret generic ceph-conf-files-az1 \
    --from-file=az1.client.openstack.keyring \
    --from-file=az1.conf \
    --from-file=az2.client.openstack.keyring \
    --from-file=az2.conf \
    --from-file=az3.client.openstack.keyring \
    --from-file=az3.conf -n openstack
  2. 为 zone 2 创建一个名为 ceph-conf-files-az2Secret CR,其中包含 Zone 2 的所有 Red Hat Ceph Storage 集群密钥环和 conf 文件,以及默认区的密钥环和 conf 文件:

    $ oc create secret generic ceph-conf-files-az2 \
    --from-file=az1.client.openstack.keyring \
    --from-file=az1.conf \
    --from-file=az2.client.openstack.keyring \
    --from-file=az2.conf -n openstack
  3. 为 zone 3 创建一个名为 ceph-conf-files-az3Secret CR,其中包含 Zone 3 的所有 Red Hat Ceph Storage 集群密钥环和 conf 文件,以及默认区的密钥环和 conf 文件:

    $ oc create secret generic ceph-conf-files-az3 \
    --from-file=az1.client.openstack.keyring \
    --from-file=az1.conf \
    --from-file=az3.client.openstack.keyring \
    --from-file=az3.conf -n openstack
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部