|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 2022-03-31 13:17  yanqi_vip  阅读(28)  评论(0)    收藏  举报

导航