前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >阅读rancher/ui 集群监控面板部分源码

阅读rancher/ui 集群监控面板部分源码

作者头像
拿我格子衫来
发布2022-01-25 14:13:38
2240
发布2022-01-25 14:13:38
举报
文章被收录于专栏:TopFETopFE

点击一个集群 路由大概是这样的 https://server-namec/123/monitoring

根据app/router.js 得知, 目录 /authenticated/cluster 匹配 /c/:cluster_id

默认进入/authenticated/cluster/index触发

代码语言:javascript
复制
redirect() {
    this.replaceWith('authenticated.cluster.monitoring.index');
}

进入到lib/monitoring/addon/index

最终

lib\monitoring\addon\index\template.hbs 便是集群监控面板的源码

使用的主要组件有 cluster-dashboard (\lib\monitoring\addon\components\cluster-dashboard\template.hbs)

cluster-basic-info

nodes-live

k8s-component-status

cluster-dashboard-tabs

resource-event-list

所用主要组件基本都在 monitoring目录夹中

由于没有集群信息。缺少一个根据页面进行标识组件的图片。先凑活看吧,有人需要我再补。

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档