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