Compare commits

33 Commits
v1.0.0 ... main

Author SHA1 Message Date
15e6445db3 Update 2.feature.yml 2023-12-11 13:48:44 +08:00
30ac7580b3 Update 1.issue.yml 2023-12-11 13:48:33 +08:00
f6cd5fbfc8 Update README.md 2023-11-13 19:47:44 +08:00
64f64a2978 Delete dkube-web directory 2023-11-13 19:42:37 +08:00
952114eace Update README.md 2023-11-13 19:42:22 +08:00
5de62c856a Update README.md 2023-11-10 14:26:04 +08:00
87bd66e6cd Update README.md 2023-09-01 09:59:36 +08:00
5b98115d1e Update README.md 2023-07-31 09:44:17 +08:00
969e4f6c32 Update README.md 2023-06-19 15:51:01 +08:00
43efedccd6 Create config.yml 2023-05-29 19:14:48 +08:00
f23238f38c Create 2.feature.yml 2023-05-29 19:14:28 +08:00
7ada39d1ac Create 1.issue.yml 2023-05-29 19:13:56 +08:00
c18c094a8a Update ingress.go 2023-02-21 16:01:35 +08:00
78b5174ef8 Update login.go 2023-02-21 16:00:45 +08:00
45a057cb4e Update main.go 2023-02-17 19:14:02 +08:00
2ba0e2e327 Update README.md 2022-11-13 21:08:16 +08:00
aebffe781e Update README.md 2022-11-13 21:05:23 +08:00
a8e1e1af9b Update README.md 2022-10-12 14:34:40 +08:00
859288027d Update README.md 2022-10-12 14:33:51 +08:00
636454d013 Update README.md 2022-10-12 14:29:36 +08:00
81d9711ff4 Update README.md 2022-10-12 14:29:22 +08:00
218cde3110 Add files via upload 2022-10-12 14:17:15 +08:00
528a0025ed Delete package-lock.json 2022-10-12 14:16:32 +08:00
34665f7c28 Delete package.json 2022-10-12 14:16:20 +08:00
980e5f5fd6 Update README.md 2022-10-12 13:55:31 +08:00
97504637d9 Update README.md 2022-10-12 13:54:24 +08:00
dcbbf5727d Update README.md 2022-10-12 13:50:06 +08:00
37b73816a8 Update README.md 2022-10-12 13:47:38 +08:00
3bfbd5ebb5 Update README.md 2022-10-12 13:47:09 +08:00
ae53384a18 Update README.md 2022-10-12 13:44:28 +08:00
085d389c05 DKube v1.0.0 2022-10-12 13:40:52 +08:00
3efdc60270 DKube v1.0.0 2022-10-12 11:55:03 +08:00
d84cfe2389 DKube v1.0.0 2022-10-12 11:45:46 +08:00
8 changed files with 152 additions and 18 deletions

62
.github/ISSUE_TEMPLATE/1.issue.yml vendored Normal file
View 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
View 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
View File

@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: 浅时光博客
url: https://www.dqzboy.com/
about: 更多学习教程,欢迎访问我们的官方网站

View File

@ -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 platformDKube 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

View File

@ -10,6 +10,7 @@ import (
"net/http"
)
//初始化
func main() {
db.Init()
service.K8s.Init()

View File

@ -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"`

View File

@ -6,6 +6,7 @@ import (
"github.com/wonderivan/logger"
)
//登入
var Login login
type login struct{}