refactor: 项目更名 WeKnora → Academy
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (latest, advisory) (push) Skipped
CLI / test (macos-latest / go 1.26) (push) Canceled after 0s
CLI / test (ubuntu-latest / go 1.26) (push) Canceled after 0s
CLI / test (windows-latest / go 1.26) (push) Canceled after 0s
Build and Push Docker Image / build-ui (push) Canceled after 0s
Build and Push Docker Image / build-docreader (push) Canceled after 0s
Build and Push Docker Image / build-sandbox (push) Canceled after 0s
Build and Push Docker Image / build-app (amd64, linux/amd64, ubuntu-latest) (push) Canceled after 0s
Build and Push Docker Image / build-app (arm64, linux/arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Build and Push Docker Image / merge (push) Canceled after 0s
Frontend / Test, type-check, and build (push) Canceled after 0s
Frontend / Docker multi-stage image (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.10) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.11) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.12) (push) Canceled after 0s
Build & Publish (mcp-server) / Test (Python 3.13) (push) Canceled after 0s
Build & Publish (mcp-server) / Build sdist + wheel (push) Canceled after 0s
Build & Publish (mcp-server) / Publish to PyPI (push) Canceled after 0s
Anydoc / anydoc parser engine (push) Canceled after 0s
App / Format, vet, test, and build (push) Canceled after 0s
DocReader / Python tests and Go client tests (push) Canceled after 0s
Build & Publish (dsh-academy) / Typecheck, test, pack (push) Canceled after 0s
Build & Publish (dsh-academy) / End-to-end inside dsh (pinned) (push) Canceled after 0s
Build & Publish (dsh-academy) / Publish to npm (push) Canceled after 0s
Go Lint Cache / warm lint cache (.) (push) Canceled after 0s
Go Lint Cache / warm lint cache (cli) (push) Canceled after 0s
Go Lint Cache / warm lint cache (client) (push) Canceled after 0s
Helm / chart (push) Canceled after 0s
- 全量替换代码/配置/文档中的项目名(保留上游 GitHub 链接、weixin 文档域名、Docker Hub 镜像名) - 重命名 32 个含项目名的文件/目录;Go module 路径改为 academy(含 client/cli 子模块) - docreader proto 描述符采用等长替换,保持序列化字节布局有效 - Dockerfile.app 构建网络修复: browserskill 离线产物通道、PyPI/apt 国内镜像 - 运行验证: go build ✓ docker compose up ✓ 健康检查 ✓
This commit is contained in:
1 parent
9097ee699d
commit
9058149576
3136 files changed
+18018
-18004
No files matched your search
+42
-42
@@ -1,13 +1,13 @@
|
||||
# WeKnora Helm Chart
|
||||
# Academy Helm Chart
|
||||
|
||||
[](https://artifacthub.io/packages/helm/weknora/weknora)
|
||||
[](https://artifacthub.io/packages/helm/academy/academy)
|
||||
[](https://opensource.org/licenses/MIT)
|
||||
|
||||
Helm chart for deploying [WeKnora](https://github.com/Tencent/WeKnora) - an AI-powered Knowledge RAG Platform.
|
||||
Helm chart for deploying [Academy](https://github.com/Tencent/WeKnora) - an AI-powered Knowledge RAG Platform.
|
||||
|
||||
## Overview
|
||||
|
||||
WeKnora is an intelligent knowledge base platform that combines:
|
||||
Academy is an intelligent knowledge base platform that combines:
|
||||
- Document parsing and understanding
|
||||
- Vector search with BM25 hybrid retrieval
|
||||
- LLM integration for conversational AI
|
||||
@@ -24,8 +24,8 @@ WeKnora is an intelligent knowledge base platform that combines:
|
||||
|
||||
```bash
|
||||
# Add required secrets
|
||||
helm install weknora ./helm \
|
||||
--namespace weknora \
|
||||
helm install academy ./helm \
|
||||
--namespace academy \
|
||||
--create-namespace \
|
||||
--set secrets.dbPassword=<your-db-password> \
|
||||
--set secrets.redisPassword=<your-redis-password> \
|
||||
@@ -61,8 +61,8 @@ helm install weknora ./helm \
|
||||
### Basic Installation
|
||||
|
||||
```bash
|
||||
helm install weknora ./helm \
|
||||
--namespace weknora \
|
||||
helm install academy ./helm \
|
||||
--namespace academy \
|
||||
--create-namespace \
|
||||
--set secrets.dbPassword=secure-password \
|
||||
--set secrets.redisPassword=secure-password \
|
||||
@@ -72,13 +72,13 @@ helm install weknora ./helm \
|
||||
### With Ingress
|
||||
|
||||
```bash
|
||||
helm install weknora ./helm \
|
||||
--namespace weknora \
|
||||
helm install academy ./helm \
|
||||
--namespace academy \
|
||||
--create-namespace \
|
||||
--set ingress.enabled=true \
|
||||
--set ingress.host=weknora.example.com \
|
||||
--set ingress.host=academy.example.com \
|
||||
--set ingress.tls.enabled=true \
|
||||
--set ingress.tls.secretName=weknora-tls \
|
||||
--set ingress.tls.secretName=academy-tls \
|
||||
--set secrets.dbPassword=secure-password \
|
||||
--set secrets.redisPassword=secure-password \
|
||||
--set secrets.jwtSecret=$(openssl rand -base64 32)
|
||||
@@ -87,8 +87,8 @@ helm install weknora ./helm \
|
||||
### With External LLM (Ollama)
|
||||
|
||||
```bash
|
||||
helm install weknora ./helm \
|
||||
--namespace weknora \
|
||||
helm install academy ./helm \
|
||||
--namespace academy \
|
||||
--create-namespace \
|
||||
--set app.extraEnv[0].name=OLLAMA_BASE_URL \
|
||||
--set app.extraEnv[0].value=http://ollama.ollama:11434 \
|
||||
@@ -128,18 +128,18 @@ postgresql:
|
||||
|
||||
ingress:
|
||||
enabled: true
|
||||
host: weknora.company.com
|
||||
host: academy.company.com
|
||||
tls:
|
||||
enabled: true
|
||||
secretName: weknora-tls
|
||||
secretName: academy-tls
|
||||
|
||||
secrets:
|
||||
existingSecret: weknora-secrets # Use pre-created secret
|
||||
existingSecret: academy-secrets # Use pre-created secret
|
||||
```
|
||||
|
||||
```bash
|
||||
helm install weknora ./helm \
|
||||
--namespace weknora \
|
||||
helm install academy ./helm \
|
||||
--namespace academy \
|
||||
--create-namespace \
|
||||
-f values-production.yaml
|
||||
```
|
||||
@@ -169,12 +169,12 @@ app:
|
||||
dataFiles:
|
||||
persistence:
|
||||
enabled: true
|
||||
existingClaim: weknora-shared-files # Pre-provisioned, verified RWX PVC
|
||||
existingClaim: academy-shared-files # Pre-provisioned, verified RWX PVC
|
||||
```
|
||||
|
||||
```bash
|
||||
helm install weknora ./helm \
|
||||
--namespace weknora \
|
||||
helm install academy ./helm \
|
||||
--namespace academy \
|
||||
--create-namespace \
|
||||
-f values-production.yaml \
|
||||
-f values-shared-storage.yaml
|
||||
@@ -207,12 +207,12 @@ Optional Service name overrides preserve the following defaults:
|
||||
For example, save this as `service-names.yaml`:
|
||||
|
||||
```yaml
|
||||
app: {service: {name: weknora-app}}
|
||||
frontend: {service: {name: weknora-frontend}}
|
||||
postgresql: {service: {name: weknora-postgres}}
|
||||
redis: {service: {name: weknora-redis}}
|
||||
docreader: {service: {name: weknora-docreader}}
|
||||
neo4j: {service: {name: weknora-neo4j}}
|
||||
app: {service: {name: academy-app}}
|
||||
frontend: {service: {name: academy-frontend}}
|
||||
postgresql: {service: {name: academy-postgres}}
|
||||
redis: {service: {name: academy-redis}}
|
||||
docreader: {service: {name: academy-docreader}}
|
||||
neo4j: {service: {name: academy-neo4j}}
|
||||
```
|
||||
|
||||
Pass `-f service-names.yaml` alongside your other values. Names must be valid
|
||||
@@ -305,7 +305,7 @@ pre-existing Service name does not automatically transfer its ownership to Helm.
|
||||
|-----------|-------------|---------|
|
||||
| `ingress.enabled` | Enable ingress | `false` |
|
||||
| `ingress.className` | Ingress class | `nginx` |
|
||||
| `ingress.host` | Hostname | `weknora.example.com` |
|
||||
| `ingress.host` | Hostname | `academy.example.com` |
|
||||
| `ingress.tls.enabled` | Enable TLS | `false` |
|
||||
| `ingress.tls.secretName` | TLS secret name | `""` |
|
||||
|
||||
@@ -315,7 +315,7 @@ pre-existing Service name does not automatically transfer its ownership to Helm.
|
||||
|-----------|-------------|---------|
|
||||
| `secrets.dbUser` | Database username | `postgres` |
|
||||
| `secrets.dbPassword` | Database password | `""` (required) |
|
||||
| `secrets.dbName` | Database name | `weknora` |
|
||||
| `secrets.dbName` | Database name | `academy` |
|
||||
| `secrets.redisPassword` | Redis password | `""` (required) |
|
||||
| `secrets.jwtSecret` | JWT signing secret | `""` (required) |
|
||||
| `secrets.existingSecret` | Use existing secret | `""` |
|
||||
@@ -338,13 +338,13 @@ These map to docker-compose profiles:
|
||||
|
||||
1. **Helm --set flags** (for testing)
|
||||
```bash
|
||||
helm install weknora ./helm --set secrets.dbPassword=xxx
|
||||
helm install academy ./helm --set secrets.dbPassword=xxx
|
||||
```
|
||||
|
||||
2. **External Secrets Operator** (recommended for production)
|
||||
```yaml
|
||||
secrets:
|
||||
existingSecret: weknora-external-secret
|
||||
existingSecret: academy-external-secret
|
||||
```
|
||||
|
||||
3. **Sealed Secrets** (for GitOps)
|
||||
@@ -363,49 +363,49 @@ The chart follows CNCF security best practices:
|
||||
## Upgrading
|
||||
|
||||
```bash
|
||||
helm upgrade weknora ./helm \
|
||||
--namespace weknora \
|
||||
helm upgrade academy ./helm \
|
||||
--namespace academy \
|
||||
--reuse-values
|
||||
```
|
||||
|
||||
## Uninstalling
|
||||
|
||||
```bash
|
||||
helm uninstall weknora --namespace weknora
|
||||
helm uninstall academy --namespace academy
|
||||
|
||||
# Optional: Remove PVCs
|
||||
kubectl delete pvc -n weknora -l app.kubernetes.io/instance=weknora
|
||||
kubectl delete pvc -n academy -l app.kubernetes.io/instance=academy
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### Check Pod Status
|
||||
```bash
|
||||
kubectl get pods -n weknora
|
||||
kubectl get pods -n academy
|
||||
```
|
||||
|
||||
### View Logs
|
||||
```bash
|
||||
# Backend logs
|
||||
kubectl logs -n weknora -l app.kubernetes.io/component=app -f
|
||||
kubectl logs -n academy -l app.kubernetes.io/component=app -f
|
||||
|
||||
# Frontend logs
|
||||
kubectl logs -n weknora -l app.kubernetes.io/component=frontend -f
|
||||
kubectl logs -n academy -l app.kubernetes.io/component=frontend -f
|
||||
```
|
||||
|
||||
### Common Issues
|
||||
|
||||
**Pod stuck in Pending**
|
||||
- Check if PVCs are bound: `kubectl get pvc -n weknora`
|
||||
- Check if PVCs are bound: `kubectl get pvc -n academy`
|
||||
- Verify storage class exists: `kubectl get sc`
|
||||
|
||||
**Connection refused errors**
|
||||
- Wait for all pods to be Ready
|
||||
- Check service endpoints: `kubectl get endpoints -n weknora`
|
||||
- Check service endpoints: `kubectl get endpoints -n academy`
|
||||
|
||||
**Database connection errors**
|
||||
- Verify secrets are correct
|
||||
- Check PostgreSQL logs: `kubectl logs -n weknora -l app.kubernetes.io/component=database`
|
||||
- Check PostgreSQL logs: `kubectl logs -n academy -l app.kubernetes.io/component=database`
|
||||
|
||||
## Contributing
|
||||
|
||||
|
||||
Reference in new issue
Block a user