第 5 章 在 OpenShift 上为分布式区存储准备 Red Hat OpenStack Services
要在 OpenShift (RHOSO)环境中为分布式区域中 Red Hat Ceph Storage 或第三方存储准备 Red Hat OpenStack Services,您必须创建 Secret 自定义资源(CR)来存储每个区的存储凭证。
5.1. 在每个区中为 Red Hat Ceph Storage 集群创建 Secret CR 复制链接链接已复制到粘贴板!
您必须创建 Secret 自定义资源(CR)来存储部署中的每个区域的 Red Hat Ceph Storage 集群凭证。默认区域 Zone 1 需要访问所有区域中的 Red Hat Ceph Storage 集群。其他区域需要访问其本地 Red Hat Ceph Storage 集群和默认区域中的 Red Hat Ceph Storage 集群。为每个区创建一个 Secret CR。
流程
为默认区 Zone 1 创建一个
SecretCR,名为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为 zone 2 创建一个名为
ceph-conf-files-az2的SecretCR,其中包含 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为 zone 3 创建一个名为
ceph-conf-files-az3的SecretCR,其中包含 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