Skip to content

Commit bd7a76f

Browse files
authored
Merge pull request #4 from frezes/gh-pages
inital website
2 parents 797dd0a + 9aa4164 commit bd7a76f

33 files changed

Lines changed: 19094 additions & 31 deletions

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,22 @@ AI Labs for KubeSphere Extension.
99

1010
## Quick Start
1111

12+
### Option 1: Deploy with kubectl (Recommended)
13+
14+
```sh
15+
kubectl apply -f https://raw.githubusercontent.com/frezes/ai-labs/refs/heads/main/deploy/deploy.yaml
16+
```
17+
18+
### Option 2: Install as KubeSphere Extension (For Developers)
19+
1220
```sh
1321
git clone https://github.com/frezes/ai-labs.git
1422
cd ai-labs
1523
# publish the extension
1624
ksbuilder publish extensions/{extension}/config/{extension}
17-
# go to KubeSphere console and install the extension
1825
```
1926

27+
### Final Step (Required for both options)
28+
29+
After deploying with either option, go to KubeSphere console and install the extension from the Extension Management page.
30+

README_zh.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# AI-Labs
2+
3+
KubeSphere 扩展的 AI 实验室。
4+
5+
## 包含内容
6+
7+
- [open-webui](./extensions/open-webui/README.md): 用户友好的 AI 界面(支持 Ollama、OpenAI API 等)
8+
- [jupyterhub](./extensions/jupyterhub/README.md): 多用户 Jupyter Notebook 服务器
9+
10+
## 快速开始
11+
12+
### 方式 1:使用 kubectl 部署(推荐)
13+
14+
```sh
15+
kubectl apply -f https://raw.githubusercontent.com/frezes/ai-labs/refs/heads/main/deploy/deploy.yaml
16+
```
17+
18+
### 方式 2:作为 KubeSphere 扩展安装(开发者使用)
19+
20+
```sh
21+
git clone https://github.com/frezes/ai-labs.git
22+
cd ai-labs
23+
# 发布扩展
24+
ksbuilder publish extensions/{extension}/config/{extension}
25+
```
26+
27+
### 最后步骤(两种方式都需要)
28+
29+
使用任一方式部署后,请前往 KubeSphere 控制台,在扩展管理页面安装扩展。
30+
31+
## 项目说明
32+
33+
AI-Labs 是一个为 KubeSphere 平台设计的扩展集合,包含了多个与 AI 相关的工具和服务,可以帮助用户在 Kubernetes 环境中更好地利用 AI 技术。
34+
35+
## 许可证
36+
37+
本项目采用 Apache 2.0 许可证。详情请见 LICENSE 文件。

extensions/holmesgpt/README.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

website/.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependencies
2+
/node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
10+
11+
# Misc
12+
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*

website/README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Website
2+
3+
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
4+
5+
## Installation
6+
7+
```bash
8+
yarn
9+
```
10+
11+
## Local Development
12+
13+
```bash
14+
yarn start
15+
```
16+
17+
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
18+
19+
## Build
20+
21+
```bash
22+
yarn build
23+
```
24+
25+
This command generates static content into the `build` directory and can be served using any static contents hosting service.
26+
27+
## Deployment
28+
29+
Using SSH:
30+
31+
```bash
32+
USE_SSH=true yarn deploy
33+
```
34+
35+
Not using SSH:
36+
37+
```bash
38+
GIT_USER=<Your GitHub username> yarn deploy
39+
```
40+
41+
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.

website/docs/changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
sidebar_position: 5
3+
---
4+
5+
# 变更日志

website/docs/contributing/Issues.md

Whitespace-only changes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"label": "贡献",
3+
"position": 4,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "本部分介绍如何为该项目做贡献。"
7+
},
8+
"collapsible": true,
9+
"collapsed": false
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"label": "扩展组件管理",
3+
"position": 3,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "本部分介绍如何在 KubeSphere 平台上管理扩展组件,包括安装、升级、配置和卸载等操作。"
7+
},
8+
"collapsible": true,
9+
"collapsed": false
10+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
sidebar_position: 1
3+
title: 安装扩展组件
4+
---
5+
6+
:::note
7+
有关扩展组件管理的更多信息,请参阅官方文档:[KubeSphere 扩展管理](https://docs.kubesphere.com.cn/v4.2.0/06-extension-management/)
8+
:::
9+
10+
# 安装扩展组件
11+
12+
本章节介绍如何在 **KubeSphere 扩展中心(Extension Center)** 中安装扩展组件。
13+
有关扩展组件的访问、配置与使用方法,请参阅扩展组件使用指南。
14+
15+
## 🛠 前提条件
16+
17+
- 您必须在 KubeSphere 平台拥有 **platform-admin** 角色(平台管理员权限)。
18+
如需了解更多用户与角色相关信息,请参考 [用户和平台角色](https://docs.kubesphere.com.cn/v4.2.0/07-user-guide/02-platform-management/04-users-and-roles/)
19+
20+
## ⚙️ 安装步骤
21+
22+
1. 使用具有 **platform-admin** 角色的账号登录 KubeSphere Web 控制台。
23+
2. 进入 **扩展中心(Extension Center)**,搜索你要安装的扩展组件。
24+
3. 点击扩展组件名称,然后点击 **安装(Install)**,进入组件安装页面。
25+
4.**版本选择** 页签中,选择扩展组件的版本号,并确认所有必装组件都已选中,点击 **下一步**
26+
27+
> **说明**
28+
> 在安装检测阶段,系统会识别该扩展组件是否依赖其他组件。
29+
> 这些依赖分为 **必装组件****选装组件**
30+
> - 若某个必装组件状态显示 **未就绪**,则需要先安装该组件的正确版本,才能继续后续安装。
31+
> - 选装组件则不会阻止扩展组件的安装。
32+
33+
5. 切换到 **扩展组件配置** 页签,在自定义配置输入框填入你所需的参数。检查 **最终配置** 后,点击 **下一步**
34+
35+
> 小贴士:
36+
> - 点击右上角按钮可全屏查看配置内容
37+
> - 可上传自定义配置文件、下载当前配置或复制配置内容
38+
39+
6.**扩展组件安装** 页签点击 **开始安装(Install)**,启动扩展组件安装流程。
40+
7. 安装完成后,点击 **下一步**
41+
8.**集群选择** 页签,选择目标集群(可以选择多个集群)以便在这些集群中启用该扩展组件。
42+
9.**差异化配置** 页签,可对不同集群的 Agent 配置进行个性化设置(如有必要),然后点击 **确定** 安装 Agent。等待安装完成即可。
43+
44+
> ⚠️ 注意:
45+
> 有些扩展组件不需要安装集群 Agent,即可能跳过 “集群选择” 与 “差异化配置” 页签,仅需按照页面提示完成安装。
46+
47+
安装成功后,该扩展组件默认即被启用。
48+
49+
---
50+
51+
## 🧭 后续操作 & 使用
52+
53+
- 在 KubeSphere 控制台的扩展中心中,查看已安装扩展列表
54+
- 对已安装的扩展进行升级、配置或卸载
55+
- 使用扩展组件提供的功能模块(访问 UI、管理 Agent、查看状态等)
56+
57+
---
58+
59+
## 📘 延伸阅读
60+
61+
- [管理扩展组件](/docs/extension-managerment/manage)
62+
- [升级扩展组件](/docs/extension-managerment/upgrade)
63+
- [卸载扩展组件](/docs/extension-managerment/uninstall)

0 commit comments

Comments
 (0)