Compare commits
33 Commits
Author | SHA1 | Date | |
---|---|---|---|
15e6445db3 | |||
30ac7580b3 | |||
f6cd5fbfc8 | |||
64f64a2978 | |||
952114eace | |||
5de62c856a | |||
87bd66e6cd | |||
5b98115d1e | |||
969e4f6c32 | |||
43efedccd6 | |||
f23238f38c | |||
7ada39d1ac | |||
c18c094a8a | |||
78b5174ef8 | |||
45a057cb4e | |||
2ba0e2e327 | |||
aebffe781e | |||
a8e1e1af9b | |||
859288027d | |||
636454d013 | |||
81d9711ff4 | |||
218cde3110 | |||
528a0025ed | |||
34665f7c28 | |||
980e5f5fd6 | |||
97504637d9 | |||
dcbbf5727d | |||
37b73816a8 | |||
3bfbd5ebb5 | |||
ae53384a18 | |||
085d389c05 | |||
3efdc60270 | |||
d84cfe2389 |
62
.github/ISSUE_TEMPLATE/1.issue.yml
vendored
Normal file
62
.github/ISSUE_TEMPLATE/1.issue.yml
vendored
Normal file
@ -0,0 +1,62 @@
|
||||
name: 反馈问题 🐛
|
||||
description: 项目运行中遇到的Bug或问题。
|
||||
title: "🐞 反馈问题:"
|
||||
labels: ['status: needs check']
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
### ⚠️ 前置确认
|
||||
1. 网络是否正常
|
||||
2. 是否最新代码
|
||||
3. 服务器是否有足够资源运行程序
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: 前置确认
|
||||
options:
|
||||
- label: 我确认我的网络正常,使用的是最新代码,并且服务器有足够资源运行程序
|
||||
required: true
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: ⚠️ 搜索issues中是否已存在类似问题
|
||||
description: >
|
||||
请在 [历史issue](https://github.com/dqzboy/DKube/issues) 中清空输入框,搜索你的问题
|
||||
或相关日志的关键词来查找是否存在类似问题。
|
||||
options:
|
||||
- label: 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue
|
||||
required: true
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
请在上方的`title`中填写你对你所遇到问题的简略总结,这将帮助其他人更好的找到相似问题,谢谢❤️。
|
||||
- type: dropdown
|
||||
attributes:
|
||||
label: 操作系统类型?
|
||||
description: >
|
||||
请选择你运行程序的操作系统类型。
|
||||
options:
|
||||
- CentOS 7
|
||||
- CentOS 8
|
||||
- Redhat
|
||||
- Ubuntu
|
||||
- Other (请在问题中说明)
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: 复现步骤 🕹
|
||||
description: |
|
||||
**⚠️ 不能复现将会关闭issue.**
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: 问题描述 😯
|
||||
description: 详细描述出现的问题,或提供有关截图。
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: 终端日志 📒
|
||||
description: |
|
||||
在此处粘贴终端日志
|
||||
value: |
|
||||
```log
|
||||
<此处粘贴终端日志>
|
||||
```
|
29
.github/ISSUE_TEMPLATE/2.feature.yml
vendored
Normal file
29
.github/ISSUE_TEMPLATE/2.feature.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
name: 功能建议 🚀
|
||||
description: 提出你对项目的新想法或建议。
|
||||
title: "🚀 功能建议:"
|
||||
labels: ['status: needs check']
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
请在上方的`title`中填写简略总结,谢谢❤️。
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: ⚠️ 搜索是否存在类似issue
|
||||
description: >
|
||||
请在 [历史issue](https://github.com/dqzboy/DKube/issues) 中清空输入框,搜索关键词查找是否存在相似issue。
|
||||
options:
|
||||
- label: 我已经搜索过issues和disscussions,没有发现相似issue
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: 总结
|
||||
description: 描述feature的功能。
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: 举例
|
||||
description: 提供聊天示例,草图或相关网址。
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: 动机
|
||||
description: 描述你提出该feature的动机,比如没有这项feature对你的使用造成了怎样的影响。 请提供更详细的场景描述,这可能会帮助我们发现并提出更好的解决方案。
|
5
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
5
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: 浅时光博客
|
||||
url: https://www.dqzboy.com/
|
||||
about: 更多学习教程,欢迎访问我们的官方网站
|
69
README.md
69
README.md
@ -1,66 +1,105 @@
|
||||
<div style="text-align: center"></div>
|
||||
<p align="center">
|
||||
<img src="https://user-images.githubusercontent.com/42825450/193592031-49863a65-3f0e-4f94-bf98-82dac27b9d58.jpg" width="250px" height="220px">
|
||||
<img src="https://user-images.githubusercontent.com/42825450/201523059-ed28e427-e1b6-443a-8326-100460e6dec9.jpg" width="250px" height="220px">
|
||||
<br>
|
||||
<i>Make the project development and release simpler, easier and more efficient.</i>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
## What is DKube
|
||||
This is a K8s cluster management platform;DKube Provides a wizard-style operation interface for K8s cluster management to help your team manage your cluster environment quickly and easily
|
||||
|
||||
## 功能
|
||||
## 前端 | Front
|
||||
- 前端项目仓库访问地址如下:<br>
|
||||
[DKube-Web](https://github.com/dqzboy/DKube-Web)
|
||||
|
||||
## 功能 | Function
|
||||
|
||||
<details>
|
||||
<summary><b> K8s集群管理</b></summary>
|
||||
<summary><b> K8s集群管理 | K8s cluster management</b></summary>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><b> 平台化界面</b></summary>
|
||||
<summary><b> 平台化界面 | platform interface</b></summary>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><b> 更加便捷的管理K8s</b></summary>
|
||||
<summary><b> 更加便捷的管理K8s | More convenient management of K8s</b></summary>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><b> 支持YAML信息查看\变更</b></summary>
|
||||
<summary><b> 支持YAML信息查看\变更 | Support YAML information view\change</b></summary>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><b> 平台化管理控制器</b></summary>
|
||||
<summary><b> 平台化管理控制器 | Platform Management Controller</b></summary>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><b> 实时查看容器日志</b></summary>
|
||||
<summary><b> 实时查看容器日志 | View container logs in real time</b></summary>
|
||||
</details>
|
||||
|
||||
## 截图
|
||||
## 截图 | screenshot
|
||||
<br/>
|
||||
<table>
|
||||
<tr>
|
||||
<td width="50%" align="center"><b>登入认证管理</b></td>
|
||||
<td width="50%" align="center"><b>集群信息状态</b></td>
|
||||
<td width="50%" align="center"><b>登入认证管理 | Login authentication management</b></td>
|
||||
<td width="50%" align="center"><b>集群信息状态 | Cluster Information Status</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="50%" align="center"><img src="https://user-images.githubusercontent.com/42825450/193593148-4d258b30-b972-4583-b359-32978a8a8637.jpg?raw=true"></td>
|
||||
<td width="50%" align="center"><img src="https://user-images.githubusercontent.com/42825450/193593170-3373dabd-8d5d-4a01-a59f-49851f11f433.jpg?raw=true"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="50%" align="center"><b>节点资源管理</b></td>
|
||||
<td width="50%" align="center"><b>名称空间管理</b></td>
|
||||
<td width="50%" align="center"><b>节点资源管理 | Node resource management</b></td>
|
||||
<td width="50%" align="center"><b>名称空间管理 | namespace management</b></td>
|
||||
</tr>
|
||||
<td width="50%" align="center"><img src="https://user-images.githubusercontent.com/42825450/193593569-daebc649-f6c4-45a2-88f6-2aa4860c3dea.jpg?raw=true"></td>
|
||||
<td width="50%" align="center"><img src="https://user-images.githubusercontent.com/42825450/193593579-e0539ab0-6b22-4060-b254-c6495fb87cbd.jpg?raw=true"></td>
|
||||
<tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="50%" align="center"><b>YAML信息管理</b></td>
|
||||
<td width="50%" align="center"><b>Pod副本管理</b></td>
|
||||
<td width="50%" align="center"><b>YAML信息管理 | YAML information management</b></td>
|
||||
<td width="50%" align="center"><b>Pod副本管理 | Pod copy management</b></td>
|
||||
</tr>
|
||||
<td width="50%" align="center"><img src="https://user-images.githubusercontent.com/42825450/193593867-4a98bd0f-a910-4b90-92e3-6a3164d0c241.jpg?raw=true"></td>
|
||||
<td width="50%" align="center"><img src="https://user-images.githubusercontent.com/42825450/193593871-ee004cb8-42cb-427a-a0cc-fa1e15e7d466.jpg?raw=true"></td>
|
||||
<tr>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
## 部署 | deploy
|
||||
### 后端
|
||||
- 修改kube-config路径: `config/config.go`
|
||||
|
||||
```shell
|
||||
Kubeconfig = "/root/.kube/config"
|
||||
```
|
||||
|
||||
- 后端
|
||||
```go
|
||||
env GOOS=linux GOARCH=amd64 go build -o DKube-Server main.go
|
||||
|
||||
~]# chmod +x DKube-Server
|
||||
~]# ./DKube-Server
|
||||
```
|
||||
|
||||
- 数据库|database: `config/config.go`
|
||||
```shell
|
||||
//数据库配置|database configuration
|
||||
DbType = "mysql"
|
||||
DbHost = "xx.xx.xx.xx"
|
||||
DbPort = 3306
|
||||
DbName = "dkube"
|
||||
DbUser = "root"
|
||||
DbPwd = "123456"
|
||||
```
|
||||
|
||||
### 前端
|
||||
```shell
|
||||
npm install
|
||||
npm run build
|
||||
```
|
||||
|
Submodule dkube-web deleted from 638b5bdd3c
1
main.go
1
main.go
@ -10,6 +10,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//初始化
|
||||
func main() {
|
||||
db.Init()
|
||||
service.K8s.Init()
|
||||
|
@ -1,5 +1,4 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
@ -12,7 +11,6 @@ import (
|
||||
var Ingress ingress
|
||||
|
||||
type ingress struct{}
|
||||
|
||||
type IngressesResp struct {
|
||||
Items []nwv1.Ingress `json:"items"`
|
||||
Total int `json:"total"`
|
||||
|
@ -6,6 +6,7 @@ import (
|
||||
"github.com/wonderivan/logger"
|
||||
)
|
||||
|
||||
//登入
|
||||
var Login login
|
||||
|
||||
type login struct{}
|
||||
|
Reference in New Issue
Block a user