Ceph配置DashBoard管理

2021-02-19 14:24:46 浏览数 (1)

安装软件包

代码语言:javascript复制
yum -y install ceph-mgr-dashboard

查看模块

代码语言:javascript复制
ceph mgr module ls |less

启动模块

代码语言:javascript复制
ceph mgr module enable dashboard --force

ceph mgr module ls |less
...
    "enabled_modules": [
        "dashboard",
        "iostat",
        "restful"
    ]

配置 生成证书

代码语言:javascript复制
[root@node-1 ~]# ceph dashboard create-self-signed-cert
Self-signed certificate created

配置dashboard

代码语言:javascript复制
[root@node-1 ~]# ceph config set mgr mgr/dashboard/server_addr 172.16.10.224
[root@node-1 ~]# ceph config set mgr mgr/dashboard/server_port 8080
[root@node-1 ~]# ceph config set mgr mgr/dashboard/ssl_server_port 8443

查看

代码语言:javascript复制
root@node-1 ~]# ceph mgr services
{
    "dashboard": "https://node-1:8443/"
}

启用一个用户,配置用户名密码,授予一个角色

代码语言:javascript复制
[root@node-1 ~]# ceph dashboard ac-user-create cephadmin cephpassword administrator
{"username":
 "cephadmin", "lastUpdate": 1605688571, "name": null, "roles": 
["administrator"], "password": 
"$2b$12$aQh18pOu5xSeu4DB7LSaseUyf7TpyRfiA.LiPQbipta6EnAlc1hNy", "email":
 null}

访问 https://ip:8443

0 人点赞