Kubernetes/存储/Ceph/MGR开启监控管理界面.md
offends 7a2f41e7d6
All checks were successful
continuous-integration/drone Build is passing
synchronization
2024-08-07 18:54:39 +08:00

1020 B

本文作者:丁辉

MGR开启监控管理界面

  1. 开启 dashboard

    docker exec ceph-mgr ceph mgr module enable dashboard
    
  2. 创建证书

    docker exec ceph-mgr ceph dashboard create-self-signed-cert
    
  3. 创建登陆用户名和密码

    docker exec ceph-mgr sh -c 'echo "admin" > /password.txt'
    docker exec ceph-mgr ceph dashboard set-login-credentials admin -i /password.txt
    
  4. 配置外部访问端口

    docker exec ceph-mgr ceph config set mgr mgr/dashboard/server_port 7000
    
  5. 配置外部访问

    docker exec ceph-mgr ceph config set mgr mgr/dashboard/server_addr 192.168.1.10
    
  6. 关闭 HTTPS

    docker exec ceph-mgr ceph config set mgr mgr/dashboard/ssl false
    
  7. 重启 Mgr

    docker exec ceph-mgr ceph mgr module disable dashboard
    docker exec ceph-mgr ceph mgr module enable dashboard
    

访问地址: http://127.0.0.1:7000/

账户密码: admin/admin