|NO.Z.00245|——————————|^^ 部署 ^^|——|KuberNetes&存储进阶.V11|——|Ceph.v05|ceph集群|cephdashboard|

一、安装ceph dashboard
### --- 暴露服务
~~~     默认情况下,ceph dashboard是打开的,可以通过以下命令查看ceph dashboard的service:

[root@k8s-master01 ceph]# kubectl -n rook-ceph get service rook-ceph-mgr-dashboard
NAME                      TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)    AGE
rook-ceph-mgr-dashboard   ClusterIP   10.99.155.49   <none>        8443/TCP   123m
### --- 可以两种方式访问:

~~~     将该service改为NodePort
~~~     通过ingress代理
### --- 本文档演示NodePort,ingress可以参考课程的ingress章节。

~~~     参考5个节点的rook-ceph部署方案
### --- 修改代理方式
~~~     注:更改为NodePort
~~~     保存退出后,会创建一个端口,然后通过任意k8s节点的IP+该端口即可访问该dashboard:  

[root@k8s-master01 ceph]# kubectl -n rook-ceph edit service rook-ceph-mgr-dashboard
  type: NodePort
[root@k8s-master01 ceph]# kubectl  get svc -n rook-ceph rook-ceph-mgr-dashboard
NAME                      TYPE       CLUSTER-IP     EXTERNAL-IP   PORT(S)          AGE
rook-ceph-mgr-dashboard   NodePort   10.99.155.49   <none>        8443:31549/TCP   124m
二、访问ceph的dashboard管理页面;是https的格式去访问:https://192.168.1.20:31549/
三、登录dashboard
### --- 查看账户admin的密码

[root@k8s-master01 ceph]# kubectl -n rook-ceph get secret rook-ceph-dashboard-password -o jsonpath="{['data']['password']}" | base64 --decode && echo
3I6\zl=C?zh9YIK+3b[?

 
 
 
 
 
 
 
 
 

Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
                                                                                                                                                   ——W.S.Landor

 

 

posted on   yanqi_vip  阅读(15)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示