Ceph 对象网关是一个构建在 librados 之上的对象存储接口,它为应用程序访问Ceph 存储集群提供了一个 RESTful 风格的网关 。 Ceph 对象存储支持 2 种接口:node
安装对象网关
在管理节点上cephmaster1安装目录中选择任何一个节点安装对象网关
ceph-deploy install --rgw cephmaster1 cephmaster2
ceph-deploy rgw create cephmaster1 cephmaster2
systemctl status ceph-radosgw@rgw.cephmaster1
当前部署在cephmaster1节点上端口为7480web
将配置信息推送到其余各节点
ceph-deploy --overwrite-conf config push cephmaster1 cephmaster2 cephnode1 cephnode2 cephnode3
测试端口
netstat -antupl|grep 7480
curl http://cephmaster1:7480
查看状态
修改网关端口
默认端口为7480,将默认端口修改成80
[client.rgw.cephmaster1]
rgw_frontends = "civetweb port=80"
[client.rgw.cephmaster2]
rgw_frontends = "civetweb port=80"
将配置信息推送到其余各节点
ceph-deploy --overwrite-conf config push cephmaster1 cephmaster2 cephnode1 cephnode2 cephnode3
重启服务
systemctl restart ceph-radosgw.target
查看端口
netstat -antupl|grep radosfrontend