Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubernetes节点管理功能 #6

Open
linorwang opened this issue Jan 14, 2024 · 0 comments
Open

Kubernetes节点管理功能 #6

linorwang opened this issue Jan 14, 2024 · 0 comments
Assignees
Labels
新功能 New feature or request

Comments

@linorwang
Copy link
Contributor

需求分析:

目前k8s集群安装每家公司各不相同,五花八门,各种依赖错综复杂。业界各种集群的节点管理对于新增节点可能简单点,对于有状态的节点缩容难度可想而知。当然k8s节点管理无法通过简单的dashboard来完成,可以做到master和work节点的增删那一定是一套安装套路,集成在dashboard中,目前能做的节点管理只能是节点列表的展示。

功能大概设计:

  • 1.在routers下的v1包中InitK8sRouters内添加一个GET请求路由/k8s/cluster/:cid/node/list,需要前端传入:cid集群编号,引用controllers下k8s包nodes方法GetK8sClusterNodeList
  • 2.在svc中的k8s包下创建nodes文件里面有一个GetK8sClusterNodeList函数用于获取集群合法性校验并且提取到interface文件的接口中
  • 3.GetK8sClusterNodeList中调用svc的接口实现获取节点列表

API设计:

将在apipox中具体实现设计

@cf1998 cf1998 assigned cf1998 and linorwang and unassigned cf1998 Jan 15, 2024
@cf1998 cf1998 added the 新功能 New feature or request label Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
新功能 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants