在ceph-tools的pod中看看dashboard是否开启
kubectl -n rook-ceph exec -it rook-ceph-tools-7b75b967db-jn68d -- bash
ceph mgr services 查看集群内地址
使用curl测试能否访问
ceph mgr module disable dashboard 关闭
ceph mgr module enable dashboard 开启
rook中关于ceph部署的cluster.yaml配置文件默认为https,使用http访问把这个注释

在tools关闭ceph config set mgr mgr/dashboard/ssl false
自己出现创建个dashboard-external-http.yaml文件,将模版文件中的端口改成7000
yaml
apiVersion: v1
kind: Service
metadata:
name: rook-ceph-mgr-dashboard-external-http
namespace: rook-ceph
labels:
app: rook-ceph-mgr
rook_cluster: rook-ceph
spec:
ports:
- name: dashboard
port: 7000
protocol: TCP
targetPort: 7000
selector:
app: rook-ceph-mgr
rook_cluster: rook-ceph
sessionAffinity: None
type: NodePort
创建这个svc
访问测试
用户名admin
使用以下命令查看密码
kubectl -n rook-ceph get secret rook-ceph-dashboard-password -o jsonpath="{['data']['password']}" | base64 --decode && echo