部署RGW节点

RGW(RADOS Gateway)是Ceph集群对外提供对象存储服务的一个网关,为客户端访问Ceph集群提供了一个兼容S3和Swift的RESTfulAPI接口。本章节主要介绍如何配置RGW节点。

  1. 添加client1 host。

    1
    ceph orch host add client1 192.168.3.160 --labels _admin,rgw
    

  2. 在标记为RGW的主机上创建端口,下面以8个RGW节点为例,端口分别为10000、10001...等。

    1
    ceph orch apply rgw test_rgw --placement="label:rgw count-per-host:8" --port=10000
    

  3. 查看集群信息。

    1
    ceph -s
    

    返回信息如下所示: