启用dashboard插件-ceph
安装dashboard,在mgr节点安装
apt-cache madison ceph-mgr-dashboard
apt install ceph-mgr-dashboard
deploy操作
列出所有模块
ceph mgr module ls
启用模块,浏览器直接访问ip:9009端口
ceph mgr module enable dashboard
ceph config set mgr mgr/dashboard/ssl false
ceph config set mgr mgr/dashboard/ceph-mgr1/server_addr 172.31.6.104 #指定dashboard监听地址
ceph config set mgr mgr/dashboard/ceph-mgr1/server_port 9009 #指定dashboard监听端口
ceph -s
netstat -tunlp #在mgr检查有没有9009端口,等几分钟在检查
设置dashboard账户密码
touch pass.txt
echo "12345678" > pass.txt
ceph dashboard set-login-credentials jack -i pass.txt
dashboard SSL
ceph dashboard create-self-signed-cert #生成证书
ceph config set mgr mgr/dashboard/ssl true #启用SSL
ceph mgr services #查看当前dashboard状态
systemctl restart ceph-mgr@ceph-mgr1
ceph mgr services #再次验证一下变没变成https