启用 MGR Dashboard 通过以下命令启用 dashboard: ceph mgr module enable dashboard 设置 SSL/TLS 支持,这里仅使用自签名证书: ceph dashboard create-self-signed-cert 创建一个管理员用户 admin,这里使用 --force-password 绕过密码策略检查,并使用 --pwd_update_required 确保首次登录后强制要求用户更改密码: echo "123456" > admin.pass ceph dashboard ac-user-create --force-password --pwd_update_required admin -i admin.pass administrator 目前我们的集群里有两个 mgr,为了提高可用性,我们需要引入代理服务,建议先执行以下命令: ceph config set mgr mgr/dashboard/standby_behaviour "error" ceph config set mgr mgr/dashboard/standby_error_status_code 503 📌注:上述命令会让非 Active 的 MGR dashboard 不响应 303 Redirect,而是自定义相应 503 状态码,否则代理服务在 dashboard failover 后将收到错误跳转地址。
...