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
+3
-3
@@ -1,7 +1,7 @@
|
||||
apiVersion: v2
|
||||
name: weknora
|
||||
name: academy
|
||||
description: |
|
||||
WeKnora - AI-powered Knowledge RAG Platform for building intelligent knowledge bases
|
||||
Academy - AI-powered Knowledge RAG Platform for building intelligent knowledge bases
|
||||
with document parsing, vector search, and LLM integration.
|
||||
type: application
|
||||
version: 0.1.0
|
||||
@@ -20,7 +20,7 @@ keywords:
|
||||
- vector-search
|
||||
- chatbot
|
||||
maintainers:
|
||||
- name: WeKnora Community
|
||||
- name: Academy Community
|
||||
url: https://github.com/Tencent/WeKnora
|
||||
annotations:
|
||||
artifacthub.io/license: MIT
|
||||
+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
|
||||
|
||||
|
||||
+15
-15
@@ -2,12 +2,12 @@
|
||||
Copyright 2025 Tencent
|
||||
SPDX-License-Identifier: MIT
|
||||
|
||||
Post-installation notes for WeKnora Helm chart.
|
||||
Post-installation notes for Academy Helm chart.
|
||||
Ref: https://github.com/argoproj/argo-helm/blob/main/charts/argo-cd/templates/NOTES.txt
|
||||
*/}}
|
||||
|
||||
================================================================================
|
||||
WeKnora has been installed successfully!
|
||||
Academy has been installed successfully!
|
||||
================================================================================
|
||||
|
||||
Release: {{ .Release.Name }}
|
||||
@@ -15,20 +15,20 @@ Namespace: {{ .Release.Namespace }}
|
||||
Version: {{ .Chart.AppVersion }}
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
ACCESSING WEKNORA
|
||||
ACCESSING ACADEMY
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
{{- if .Values.ingress.enabled }}
|
||||
WeKnora is accessible via Ingress:
|
||||
Academy is accessible via Ingress:
|
||||
|
||||
URL: {{ if .Values.ingress.tls.enabled }}https{{ else }}http{{ end }}://{{ .Values.ingress.host }}
|
||||
|
||||
{{- else }}
|
||||
|
||||
To access WeKnora, use port-forwarding:
|
||||
To access Academy, use port-forwarding:
|
||||
|
||||
# Frontend (Web UI)
|
||||
kubectl port-forward svc/{{ include "weknora.serviceName" (dict "component" "frontend" "context" .) }} -n {{ .Release.Namespace }} 8080:80
|
||||
kubectl port-forward svc/{{ include "academy.serviceName" (dict "component" "frontend" "context" .) }} -n {{ .Release.Namespace }} 8080:80
|
||||
|
||||
# Then open: http://localhost:8080
|
||||
|
||||
@@ -36,11 +36,11 @@ To access WeKnora, use port-forwarding:
|
||||
|
||||
{{- if not .Values.ingress.enabled }}
|
||||
|
||||
To expose WeKnora externally, enable Ingress:
|
||||
To expose Academy externally, enable Ingress:
|
||||
|
||||
helm upgrade {{ .Release.Name }} ./helm \
|
||||
--set ingress.enabled=true \
|
||||
--set ingress.host=weknora.example.com
|
||||
--set ingress.host=academy.example.com
|
||||
|
||||
{{- end }}
|
||||
|
||||
@@ -50,19 +50,19 @@ To expose WeKnora externally, enable Ingress:
|
||||
|
||||
Components deployed:
|
||||
{{- if .Values.app.enabled }}
|
||||
- Backend API ({{ include "weknora.app.image" . }})
|
||||
- Backend API ({{ include "academy.app.image" . }})
|
||||
{{- end }}
|
||||
{{- if .Values.frontend.enabled }}
|
||||
- Frontend UI ({{ include "weknora.frontend.image" . }})
|
||||
- Frontend UI ({{ include "academy.frontend.image" . }})
|
||||
{{- end }}
|
||||
{{- if .Values.docreader.enabled }}
|
||||
- Document Reader ({{ include "weknora.docreader.image" . }})
|
||||
- Document Reader ({{ include "academy.docreader.image" . }})
|
||||
{{- end }}
|
||||
{{- if .Values.postgresql.enabled }}
|
||||
- PostgreSQL/ParadeDB ({{ include "weknora.postgresql.image" . }})
|
||||
- PostgreSQL/ParadeDB ({{ include "academy.postgresql.image" . }})
|
||||
{{- end }}
|
||||
{{- if .Values.redis.enabled }}
|
||||
- Redis ({{ include "weknora.redis.image" . }})
|
||||
- Redis ({{ include "academy.redis.image" . }})
|
||||
{{- end }}
|
||||
|
||||
{{- if or .Values.minio.enabled .Values.neo4j.enabled .Values.qdrant.enabled }}
|
||||
@@ -83,7 +83,7 @@ Optional components enabled:
|
||||
CONNECTING TO LLM
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
WeKnora requires an LLM backend. Configure via environment variables:
|
||||
Academy requires an LLM backend. Configure via environment variables:
|
||||
|
||||
helm upgrade {{ .Release.Name }} ./helm \
|
||||
--set app.extraEnv[0].name=OLLAMA_BASE_URL \
|
||||
@@ -113,7 +113,7 @@ which is deprecated and no longer read by the app):
|
||||
--set neo4j.password=<your-secure-password>
|
||||
|
||||
Access Neo4j Browser:
|
||||
kubectl port-forward svc/{{ include "weknora.serviceName" (dict "component" "neo4j" "context" .) }} -n {{ .Release.Namespace }} 7474:7474 7687:7687
|
||||
kubectl port-forward svc/{{ include "academy.serviceName" (dict "component" "neo4j" "context" .) }} -n {{ .Release.Namespace }} 7474:7474 7687:7687
|
||||
# Open: http://localhost:7474
|
||||
|
||||
{{- end }}
|
||||
|
||||
+32
-32
@@ -2,7 +2,7 @@
|
||||
Copyright 2025 Tencent
|
||||
SPDX-License-Identifier: MIT
|
||||
|
||||
WeKnora Helm Chart Template Helpers
|
||||
Academy Helm Chart Template Helpers
|
||||
|
||||
Best Practices References:
|
||||
- https://helm.sh/docs/chart_best_practices/templates/
|
||||
@@ -12,14 +12,14 @@ Best Practices References:
|
||||
{{/*
|
||||
Expand the name of the chart.
|
||||
*/}}
|
||||
{{- define "weknora.name" -}}
|
||||
{{- define "academy.name" -}}
|
||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create a default fully qualified app name.
|
||||
*/}}
|
||||
{{- define "weknora.fullname" -}}
|
||||
{{- define "academy.fullname" -}}
|
||||
{{- if .Values.fullnameOverride }}
|
||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||
{{- else }}
|
||||
@@ -34,9 +34,9 @@ Create a default fully qualified app name.
|
||||
|
||||
{{/*
|
||||
Resolve a component Service name while preserving names used by existing releases.
|
||||
Usage: include "weknora.serviceName" (dict "component" "postgresql" "context" .)
|
||||
Usage: include "academy.serviceName" (dict "component" "postgresql" "context" .)
|
||||
*/}}
|
||||
{{- define "weknora.serviceName" -}}
|
||||
{{- define "academy.serviceName" -}}
|
||||
{{- $service := (index .context.Values .component).service | default dict -}}
|
||||
{{- $legacyName := .component -}}
|
||||
{{- if eq .component "postgresql" -}}
|
||||
@@ -49,7 +49,7 @@ Usage: include "weknora.serviceName" (dict "component" "postgresql" "context" .)
|
||||
Create chart name and version as used by the chart label.
|
||||
Ref: https://helm.sh/docs/chart_best_practices/labels/
|
||||
*/}}
|
||||
{{- define "weknora.chart" -}}
|
||||
{{- define "academy.chart" -}}
|
||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||
{{- end }}
|
||||
|
||||
@@ -57,39 +57,39 @@ Ref: https://helm.sh/docs/chart_best_practices/labels/
|
||||
Common labels following Kubernetes recommended labels.
|
||||
Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/
|
||||
*/}}
|
||||
{{- define "weknora.labels" -}}
|
||||
helm.sh/chart: {{ include "weknora.chart" . }}
|
||||
{{ include "weknora.selectorLabels" . }}
|
||||
{{- define "academy.labels" -}}
|
||||
helm.sh/chart: {{ include "academy.chart" . }}
|
||||
{{ include "academy.selectorLabels" . }}
|
||||
{{- if .Chart.AppVersion }}
|
||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||
{{- end }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
app.kubernetes.io/part-of: weknora
|
||||
app.kubernetes.io/part-of: academy
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Selector labels
|
||||
*/}}
|
||||
{{- define "weknora.selectorLabels" -}}
|
||||
app.kubernetes.io/name: {{ include "weknora.name" . }}
|
||||
{{- define "academy.selectorLabels" -}}
|
||||
app.kubernetes.io/name: {{ include "academy.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Component labels - use for individual components
|
||||
Usage: {{ include "weknora.componentLabels" (dict "component" "app" "context" .) }}
|
||||
Usage: {{ include "academy.componentLabels" (dict "component" "app" "context" .) }}
|
||||
*/}}
|
||||
{{- define "weknora.componentLabels" -}}
|
||||
{{ include "weknora.labels" .context }}
|
||||
{{- define "academy.componentLabels" -}}
|
||||
{{ include "academy.labels" .context }}
|
||||
app.kubernetes.io/component: {{ .component }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Component selector labels
|
||||
Usage: {{ include "weknora.componentSelectorLabels" (dict "component" "app" "context" .) }}
|
||||
Usage: {{ include "academy.componentSelectorLabels" (dict "component" "app" "context" .) }}
|
||||
*/}}
|
||||
{{- define "weknora.componentSelectorLabels" -}}
|
||||
{{ include "weknora.selectorLabels" .context }}
|
||||
{{- define "academy.componentSelectorLabels" -}}
|
||||
{{ include "academy.selectorLabels" .context }}
|
||||
app.kubernetes.io/component: {{ .component }}
|
||||
{{- end }}
|
||||
|
||||
@@ -97,9 +97,9 @@ app.kubernetes.io/component: {{ .component }}
|
||||
Create the name of the service account to use.
|
||||
Ref: https://helm.sh/docs/chart_best_practices/rbac/
|
||||
*/}}
|
||||
{{- define "weknora.serviceAccountName" -}}
|
||||
{{- define "academy.serviceAccountName" -}}
|
||||
{{- if .Values.serviceAccount.create }}
|
||||
{{- default (include "weknora.fullname" .) .Values.serviceAccount.name }}
|
||||
{{- default (include "academy.fullname" .) .Values.serviceAccount.name }}
|
||||
{{- else }}
|
||||
{{- default "default" .Values.serviceAccount.name }}
|
||||
{{- end }}
|
||||
@@ -108,11 +108,11 @@ Ref: https://helm.sh/docs/chart_best_practices/rbac/
|
||||
{{/*
|
||||
Secret name - supports existing secret
|
||||
*/}}
|
||||
{{- define "weknora.secretName" -}}
|
||||
{{- define "academy.secretName" -}}
|
||||
{{- if .Values.secrets.existingSecret }}
|
||||
{{- .Values.secrets.existingSecret }}
|
||||
{{- else }}
|
||||
{{- include "weknora.fullname" . }}-secrets
|
||||
{{- include "academy.fullname" . }}-secrets
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -120,7 +120,7 @@ Secret name - supports existing secret
|
||||
Return the app image with tag.
|
||||
Defaults to Chart.appVersion if tag is not specified.
|
||||
*/}}
|
||||
{{- define "weknora.app.image" -}}
|
||||
{{- define "academy.app.image" -}}
|
||||
{{- $tag := default .Chart.AppVersion .Values.app.image.tag }}
|
||||
{{- printf "%s:%s" .Values.app.image.repository $tag }}
|
||||
{{- end }}
|
||||
@@ -129,7 +129,7 @@ Defaults to Chart.appVersion if tag is not specified.
|
||||
Return the frontend image with tag.
|
||||
Defaults to Chart.appVersion if tag is not specified.
|
||||
*/}}
|
||||
{{- define "weknora.frontend.image" -}}
|
||||
{{- define "academy.frontend.image" -}}
|
||||
{{- $tag := default .Chart.AppVersion .Values.frontend.image.tag }}
|
||||
{{- printf "%s:%s" .Values.frontend.image.repository $tag }}
|
||||
{{- end }}
|
||||
@@ -138,7 +138,7 @@ Defaults to Chart.appVersion if tag is not specified.
|
||||
Return the docreader image with tag.
|
||||
Defaults to Chart.appVersion if tag is not specified.
|
||||
*/}}
|
||||
{{- define "weknora.docreader.image" -}}
|
||||
{{- define "academy.docreader.image" -}}
|
||||
{{- $tag := default .Chart.AppVersion .Values.docreader.image.tag }}
|
||||
{{- printf "%s:%s" .Values.docreader.image.repository $tag }}
|
||||
{{- end }}
|
||||
@@ -146,28 +146,28 @@ Defaults to Chart.appVersion if tag is not specified.
|
||||
{{/*
|
||||
Return the PostgreSQL image with tag.
|
||||
*/}}
|
||||
{{- define "weknora.postgresql.image" -}}
|
||||
{{- define "academy.postgresql.image" -}}
|
||||
{{- printf "%s:%s" .Values.postgresql.image.repository .Values.postgresql.image.tag }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Return the Redis image with tag.
|
||||
*/}}
|
||||
{{- define "weknora.redis.image" -}}
|
||||
{{- define "academy.redis.image" -}}
|
||||
{{- printf "%s:%s" .Values.redis.image.repository .Values.redis.image.tag }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Return the Neo4j image with tag.
|
||||
*/}}
|
||||
{{- define "weknora.neo4j.image" -}}
|
||||
{{- define "academy.neo4j.image" -}}
|
||||
{{- printf "%s:%s" .Values.neo4j.image.repository .Values.neo4j.image.tag }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Create image pull secrets list.
|
||||
*/}}
|
||||
{{- define "weknora.imagePullSecrets" -}}
|
||||
{{- define "academy.imagePullSecrets" -}}
|
||||
{{- with .Values.global.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 2 }}
|
||||
@@ -177,7 +177,7 @@ imagePullSecrets:
|
||||
{{/*
|
||||
Return the storage class name.
|
||||
*/}}
|
||||
{{- define "weknora.storageClass" -}}
|
||||
{{- define "academy.storageClass" -}}
|
||||
{{- if .Values.global.storageClass }}
|
||||
{{- if eq .Values.global.storageClass "-" }}
|
||||
storageClassName: ""
|
||||
@@ -191,7 +191,7 @@ storageClassName: {{ .Values.global.storageClass | quote }}
|
||||
Pod security context.
|
||||
Merges global defaults with component-specific overrides.
|
||||
*/}}
|
||||
{{- define "weknora.podSecurityContext" -}}
|
||||
{{- define "academy.podSecurityContext" -}}
|
||||
{{- $global := .Values.global.podSecurityContext | default dict }}
|
||||
{{- $component := .componentSecurityContext | default dict }}
|
||||
{{- $merged := merge $component $global }}
|
||||
@@ -204,7 +204,7 @@ securityContext:
|
||||
{{/*
|
||||
Container security context.
|
||||
*/}}
|
||||
{{- define "weknora.containerSecurityContext" -}}
|
||||
{{- define "academy.containerSecurityContext" -}}
|
||||
{{- if . }}
|
||||
securityContext:
|
||||
{{- toYaml . | nindent 2 }}
|
||||
|
||||
+27
-27
@@ -2,21 +2,21 @@
|
||||
Copyright 2025 Tencent
|
||||
SPDX-License-Identifier: MIT
|
||||
|
||||
WeKnora Backend API Server Deployment and Service.
|
||||
Academy Backend API Server Deployment and Service.
|
||||
*/}}
|
||||
{{- if .Values.app.enabled }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "weknora.fullname" . }}-app
|
||||
name: {{ include "academy.fullname" . }}-app
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "weknora.componentLabels" (dict "component" "app" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentLabels" (dict "component" "app" "context" .) | nindent 4 }}
|
||||
spec:
|
||||
replicas: {{ .Values.app.replicaCount }}
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "weknora.componentSelectorLabels" (dict "component" "app" "context" .) | nindent 6 }}
|
||||
{{- include "academy.componentSelectorLabels" (dict "component" "app" "context" .) | nindent 6 }}
|
||||
strategy:
|
||||
{{- $strategy := .Values.app.strategy | default dict }}
|
||||
{{- $strategyType := $strategy.type | default "RollingUpdate" }}
|
||||
@@ -31,17 +31,17 @@ spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "weknora.componentSelectorLabels" (dict "component" "app" "context" .) | nindent 8 }}
|
||||
{{- include "academy.componentSelectorLabels" (dict "component" "app" "context" .) | nindent 8 }}
|
||||
spec:
|
||||
{{- include "weknora.imagePullSecrets" . | nindent 6 }}
|
||||
serviceAccountName: {{ include "weknora.serviceAccountName" . }}
|
||||
{{- include "academy.imagePullSecrets" . | nindent 6 }}
|
||||
serviceAccountName: {{ include "academy.serviceAccountName" . }}
|
||||
{{- with .Values.app.podSecurityContext | default .Values.global.podSecurityContext }}
|
||||
securityContext:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: app
|
||||
image: {{ include "weknora.app.image" . }}
|
||||
image: {{ include "academy.app.image" . }}
|
||||
imagePullPolicy: {{ .Values.app.image.pullPolicy }}
|
||||
{{- with .Values.app.securityContext }}
|
||||
securityContext:
|
||||
@@ -63,37 +63,37 @@ spec:
|
||||
- name: DB_DRIVER
|
||||
value: "postgres"
|
||||
- name: DB_HOST
|
||||
value: {{ include "weknora.serviceName" (dict "component" "postgresql" "context" .) | quote }}
|
||||
value: {{ include "academy.serviceName" (dict "component" "postgresql" "context" .) | quote }}
|
||||
- name: DB_PORT
|
||||
value: "5432"
|
||||
- name: DB_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "weknora.secretName" . }}
|
||||
name: {{ include "academy.secretName" . }}
|
||||
key: DB_USER
|
||||
- name: DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "weknora.secretName" . }}
|
||||
name: {{ include "academy.secretName" . }}
|
||||
key: DB_PASSWORD
|
||||
- name: DB_NAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "weknora.secretName" . }}
|
||||
name: {{ include "academy.secretName" . }}
|
||||
key: DB_NAME
|
||||
# Redis configuration
|
||||
- name: REDIS_ADDR
|
||||
value: {{ printf "%s:6379" (include "weknora.serviceName" (dict "component" "redis" "context" .)) | quote }}
|
||||
value: {{ printf "%s:6379" (include "academy.serviceName" (dict "component" "redis" "context" .)) | quote }}
|
||||
- name: REDIS_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "weknora.secretName" . }}
|
||||
name: {{ include "academy.secretName" . }}
|
||||
key: REDIS_USERNAME
|
||||
optional: true
|
||||
- name: REDIS_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "weknora.secretName" . }}
|
||||
name: {{ include "academy.secretName" . }}
|
||||
key: REDIS_PASSWORD
|
||||
- name: REDIS_DB
|
||||
value: "0"
|
||||
@@ -105,12 +105,12 @@ spec:
|
||||
- name: JWT_SECRET
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "weknora.secretName" . }}
|
||||
name: {{ include "academy.secretName" . }}
|
||||
key: JWT_SECRET
|
||||
- name: SYSTEM_AES_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "weknora.secretName" . }}
|
||||
name: {{ include "academy.secretName" . }}
|
||||
key: SYSTEM_AES_KEY
|
||||
# Retrieval & Storage
|
||||
- name: RETRIEVE_DRIVER
|
||||
@@ -121,7 +121,7 @@ spec:
|
||||
value: {{ .Values.app.env.LOCAL_STORAGE_BASE_DIR | quote }}
|
||||
# Document reader
|
||||
- name: DOCREADER_ADDR
|
||||
value: {{ printf "%s:50051" (include "weknora.serviceName" (dict "component" "docreader" "context" .)) | quote }}
|
||||
value: {{ printf "%s:50051" (include "academy.serviceName" (dict "component" "docreader" "context" .)) | quote }}
|
||||
# Processing
|
||||
- name: AUTO_RECOVER_DIRTY
|
||||
value: {{ .Values.app.env.AUTO_RECOVER_DIRTY | quote }}
|
||||
@@ -130,8 +130,8 @@ spec:
|
||||
# Docker sandbox is off unless the deployer opts in. A workspace
|
||||
# admin who can save a Docker config can create containers on
|
||||
# whatever Engine API this process can reach (often host root).
|
||||
- name: WEKNORA_SANDBOX_DOCKER_ENABLED
|
||||
value: {{ .Values.app.env.WEKNORA_SANDBOX_DOCKER_ENABLED | default "false" | quote }}
|
||||
- name: ACADEMY_SANDBOX_DOCKER_ENABLED
|
||||
value: {{ .Values.app.env.ACADEMY_SANDBOX_DOCKER_ENABLED | default "false" | quote }}
|
||||
{{- if .Values.neo4j.enabled }}
|
||||
# Neo4j configuration (for GraphRAG)
|
||||
# NEO4J_ENABLE 是知识图谱的唯一开关(Go 代码认它,不认 ENABLE_GRAPH_RAG)。
|
||||
@@ -139,16 +139,16 @@ spec:
|
||||
- name: NEO4J_ENABLE
|
||||
value: "true"
|
||||
- name: NEO4J_URI
|
||||
value: {{ printf "bolt://%s:7687" (include "weknora.serviceName" (dict "component" "neo4j" "context" .)) | quote }}
|
||||
value: {{ printf "bolt://%s:7687" (include "academy.serviceName" (dict "component" "neo4j" "context" .)) | quote }}
|
||||
- name: NEO4J_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "weknora.secretName" . }}
|
||||
name: {{ include "academy.secretName" . }}
|
||||
key: NEO4J_USERNAME
|
||||
- name: NEO4J_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "weknora.secretName" . }}
|
||||
name: {{ include "academy.secretName" . }}
|
||||
key: NEO4J_PASSWORD
|
||||
{{- end }}
|
||||
{{- with .Values.app.extraEnv }}
|
||||
@@ -172,7 +172,7 @@ spec:
|
||||
- name: data-files
|
||||
{{- if .Values.dataFiles.persistence.enabled }}
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.dataFiles.persistence.existingClaim | default (printf "%s-data-files" (include "weknora.fullname" .)) }}
|
||||
claimName: {{ .Values.dataFiles.persistence.existingClaim | default (printf "%s-data-files" (include "academy.fullname" .)) }}
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
@@ -192,14 +192,14 @@ spec:
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "weknora.serviceName" (dict "component" "app" "context" .) | quote }}
|
||||
name: {{ include "academy.serviceName" (dict "component" "app" "context" .) | quote }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "weknora.componentLabels" (dict "component" "app" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentLabels" (dict "component" "app" "context" .) | nindent 4 }}
|
||||
spec:
|
||||
type: {{ .Values.app.service.type }}
|
||||
selector:
|
||||
{{- include "weknora.componentSelectorLabels" (dict "component" "app" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentSelectorLabels" (dict "component" "app" "context" .) | nindent 4 }}
|
||||
ports:
|
||||
- name: http
|
||||
port: {{ .Values.app.service.port }}
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
Copyright 2025 Tencent
|
||||
SPDX-License-Identifier: MIT
|
||||
|
||||
WeKnora Document Reader (gRPC) Deployment and Service.
|
||||
Academy Document Reader (gRPC) Deployment and Service.
|
||||
*/}}
|
||||
{{- if .Values.docreader.enabled }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "weknora.fullname" . }}-docreader
|
||||
name: {{ include "academy.fullname" . }}-docreader
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "weknora.componentLabels" (dict "component" "docreader" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentLabels" (dict "component" "docreader" "context" .) | nindent 4 }}
|
||||
spec:
|
||||
replicas: {{ .Values.docreader.replicaCount }}
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "weknora.componentSelectorLabels" (dict "component" "docreader" "context" .) | nindent 6 }}
|
||||
{{- include "academy.componentSelectorLabels" (dict "component" "docreader" "context" .) | nindent 6 }}
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
@@ -25,17 +25,17 @@ spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "weknora.componentSelectorLabels" (dict "component" "docreader" "context" .) | nindent 8 }}
|
||||
{{- include "academy.componentSelectorLabels" (dict "component" "docreader" "context" .) | nindent 8 }}
|
||||
spec:
|
||||
{{- include "weknora.imagePullSecrets" . | nindent 6 }}
|
||||
serviceAccountName: {{ include "weknora.serviceAccountName" . }}
|
||||
{{- include "academy.imagePullSecrets" . | nindent 6 }}
|
||||
serviceAccountName: {{ include "academy.serviceAccountName" . }}
|
||||
{{- with .Values.global.podSecurityContext }}
|
||||
securityContext:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: docreader
|
||||
image: {{ include "weknora.docreader.image" . }}
|
||||
image: {{ include "academy.docreader.image" . }}
|
||||
imagePullPolicy: {{ .Values.docreader.image.pullPolicy }}
|
||||
{{- with .Values.docreader.securityContext }}
|
||||
securityContext:
|
||||
@@ -87,14 +87,14 @@ spec:
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "weknora.serviceName" (dict "component" "docreader" "context" .) | quote }}
|
||||
name: {{ include "academy.serviceName" (dict "component" "docreader" "context" .) | quote }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "weknora.componentLabels" (dict "component" "docreader" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentLabels" (dict "component" "docreader" "context" .) | nindent 4 }}
|
||||
spec:
|
||||
type: {{ .Values.docreader.service.type }}
|
||||
selector:
|
||||
{{- include "weknora.componentSelectorLabels" (dict "component" "docreader" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentSelectorLabels" (dict "component" "docreader" "context" .) | nindent 4 }}
|
||||
ports:
|
||||
- name: grpc
|
||||
port: {{ .Values.docreader.service.port }}
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
Copyright 2025 Tencent
|
||||
SPDX-License-Identifier: MIT
|
||||
|
||||
WeKnora Frontend Web UI Deployment and Service.
|
||||
Academy Frontend Web UI Deployment and Service.
|
||||
*/}}
|
||||
{{- if .Values.frontend.enabled }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "weknora.fullname" . }}-frontend
|
||||
name: {{ include "academy.fullname" . }}-frontend
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "weknora.componentLabels" (dict "component" "frontend" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentLabels" (dict "component" "frontend" "context" .) | nindent 4 }}
|
||||
spec:
|
||||
replicas: {{ .Values.frontend.replicaCount }}
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "weknora.componentSelectorLabels" (dict "component" "frontend" "context" .) | nindent 6 }}
|
||||
{{- include "academy.componentSelectorLabels" (dict "component" "frontend" "context" .) | nindent 6 }}
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
@@ -25,17 +25,17 @@ spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "weknora.componentSelectorLabels" (dict "component" "frontend" "context" .) | nindent 8 }}
|
||||
{{- include "academy.componentSelectorLabels" (dict "component" "frontend" "context" .) | nindent 8 }}
|
||||
spec:
|
||||
{{- include "weknora.imagePullSecrets" . | nindent 6 }}
|
||||
serviceAccountName: {{ include "weknora.serviceAccountName" . }}
|
||||
{{- include "academy.imagePullSecrets" . | nindent 6 }}
|
||||
serviceAccountName: {{ include "academy.serviceAccountName" . }}
|
||||
{{- with .Values.global.podSecurityContext }}
|
||||
securityContext:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: frontend
|
||||
image: {{ include "weknora.frontend.image" . }}
|
||||
image: {{ include "academy.frontend.image" . }}
|
||||
imagePullPolicy: {{ .Values.frontend.image.pullPolicy }}
|
||||
{{- with .Values.frontend.securityContext }}
|
||||
securityContext:
|
||||
@@ -43,7 +43,7 @@ spec:
|
||||
{{- end }}
|
||||
env:
|
||||
- name: APP_HOST
|
||||
value: {{ .Values.frontend.appHost | default (include "weknora.serviceName" (dict "component" "app" "context" .)) | quote }}
|
||||
value: {{ .Values.frontend.appHost | default (include "academy.serviceName" (dict "component" "app" "context" .)) | quote }}
|
||||
- name: APP_PORT
|
||||
value: {{ .Values.frontend.appPort | default .Values.app.service.port | quote }}
|
||||
- name: MAX_FILE_SIZE_MB
|
||||
@@ -97,14 +97,14 @@ spec:
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "weknora.serviceName" (dict "component" "frontend" "context" .) | quote }}
|
||||
name: {{ include "academy.serviceName" (dict "component" "frontend" "context" .) | quote }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "weknora.componentLabels" (dict "component" "frontend" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentLabels" (dict "component" "frontend" "context" .) | nindent 4 }}
|
||||
spec:
|
||||
type: {{ .Values.frontend.service.type }}
|
||||
selector:
|
||||
{{- include "weknora.componentSelectorLabels" (dict "component" "frontend" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentSelectorLabels" (dict "component" "frontend" "context" .) | nindent 4 }}
|
||||
ports:
|
||||
- name: http
|
||||
port: {{ .Values.frontend.service.port }}
|
||||
|
||||
@@ -2,17 +2,17 @@
|
||||
Copyright 2025 Tencent
|
||||
SPDX-License-Identifier: MIT
|
||||
|
||||
Ingress resource for WeKnora.
|
||||
Ingress resource for Academy.
|
||||
Routes /api to backend, / to frontend.
|
||||
*/}}
|
||||
{{- if .Values.ingress.enabled }}
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ include "weknora.fullname" . }}
|
||||
name: {{ include "academy.fullname" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "weknora.componentLabels" (dict "component" "ingress" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentLabels" (dict "component" "ingress" "context" .) | nindent 4 }}
|
||||
{{- with .Values.ingress.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
@@ -38,7 +38,7 @@ spec:
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: {{ include "weknora.serviceName" (dict "component" "app" "context" .) | quote }}
|
||||
name: {{ include "academy.serviceName" (dict "component" "app" "context" .) | quote }}
|
||||
port:
|
||||
name: http
|
||||
# Frontend routes - catch-all
|
||||
@@ -46,7 +46,7 @@ spec:
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: {{ include "weknora.serviceName" (dict "component" "frontend" "context" .) | quote }}
|
||||
name: {{ include "academy.serviceName" (dict "component" "frontend" "context" .) | quote }}
|
||||
port:
|
||||
name: http
|
||||
{{- end }}
|
||||
+12
-12
@@ -10,32 +10,32 @@ Equivalent to: docker compose --profile neo4j
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "weknora.fullname" . }}-neo4j
|
||||
name: {{ include "academy.fullname" . }}-neo4j
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "weknora.componentLabels" (dict "component" "graph" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentLabels" (dict "component" "graph" "context" .) | nindent 4 }}
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "weknora.componentSelectorLabels" (dict "component" "graph" "context" .) | nindent 6 }}
|
||||
{{- include "academy.componentSelectorLabels" (dict "component" "graph" "context" .) | nindent 6 }}
|
||||
# Use Recreate strategy for database to avoid data corruption
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "weknora.componentSelectorLabels" (dict "component" "graph" "context" .) | nindent 8 }}
|
||||
{{- include "academy.componentSelectorLabels" (dict "component" "graph" "context" .) | nindent 8 }}
|
||||
spec:
|
||||
{{- include "weknora.imagePullSecrets" . | nindent 6 }}
|
||||
serviceAccountName: {{ include "weknora.serviceAccountName" . }}
|
||||
{{- include "academy.imagePullSecrets" . | nindent 6 }}
|
||||
serviceAccountName: {{ include "academy.serviceAccountName" . }}
|
||||
{{- with .Values.global.podSecurityContext }}
|
||||
securityContext:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: neo4j
|
||||
image: {{ include "weknora.neo4j.image" . }}
|
||||
image: {{ include "academy.neo4j.image" . }}
|
||||
imagePullPolicy: IfNotPresent
|
||||
{{- with .Values.neo4j.securityContext }}
|
||||
securityContext:
|
||||
@@ -53,7 +53,7 @@ spec:
|
||||
- name: NEO4J_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "weknora.secretName" . }}
|
||||
name: {{ include "academy.secretName" . }}
|
||||
key: NEO4J_PASSWORD
|
||||
- name: NEO4J_AUTH
|
||||
value: "neo4j/$(NEO4J_PASSWORD)"
|
||||
@@ -95,7 +95,7 @@ spec:
|
||||
- name: neo4j-data
|
||||
{{- if .Values.neo4j.persistence.enabled }}
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.neo4j.persistence.existingClaim | default (printf "%s-neo4j" (include "weknora.fullname" .)) }}
|
||||
claimName: {{ .Values.neo4j.persistence.existingClaim | default (printf "%s-neo4j" (include "academy.fullname" .)) }}
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
@@ -115,14 +115,14 @@ spec:
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "weknora.serviceName" (dict "component" "neo4j" "context" .) | quote }}
|
||||
name: {{ include "academy.serviceName" (dict "component" "neo4j" "context" .) | quote }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "weknora.componentLabels" (dict "component" "graph" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentLabels" (dict "component" "graph" "context" .) | nindent 4 }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
{{- include "weknora.componentSelectorLabels" (dict "component" "graph" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentSelectorLabels" (dict "component" "graph" "context" .) | nindent 4 }}
|
||||
ports:
|
||||
- name: http
|
||||
port: 7474
|
||||
|
||||
@@ -9,32 +9,32 @@ ParadeDB provides vector search and BM25 full-text search capabilities.
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "weknora.fullname" . }}-postgres
|
||||
name: {{ include "academy.fullname" . }}-postgres
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "weknora.componentLabels" (dict "component" "database" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentLabels" (dict "component" "database" "context" .) | nindent 4 }}
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "weknora.componentSelectorLabels" (dict "component" "database" "context" .) | nindent 6 }}
|
||||
{{- include "academy.componentSelectorLabels" (dict "component" "database" "context" .) | nindent 6 }}
|
||||
# Use Recreate strategy for database to avoid data corruption
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "weknora.componentSelectorLabels" (dict "component" "database" "context" .) | nindent 8 }}
|
||||
{{- include "academy.componentSelectorLabels" (dict "component" "database" "context" .) | nindent 8 }}
|
||||
spec:
|
||||
{{- include "weknora.imagePullSecrets" . | nindent 6 }}
|
||||
serviceAccountName: {{ include "weknora.serviceAccountName" . }}
|
||||
{{- include "academy.imagePullSecrets" . | nindent 6 }}
|
||||
serviceAccountName: {{ include "academy.serviceAccountName" . }}
|
||||
{{- with .Values.global.podSecurityContext }}
|
||||
securityContext:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: postgres
|
||||
image: {{ include "weknora.postgresql.image" . }}
|
||||
image: {{ include "academy.postgresql.image" . }}
|
||||
imagePullPolicy: IfNotPresent
|
||||
{{- with .Values.postgresql.securityContext }}
|
||||
securityContext:
|
||||
@@ -48,17 +48,17 @@ spec:
|
||||
- name: POSTGRES_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "weknora.secretName" . }}
|
||||
name: {{ include "academy.secretName" . }}
|
||||
key: DB_USER
|
||||
- name: POSTGRES_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "weknora.secretName" . }}
|
||||
name: {{ include "academy.secretName" . }}
|
||||
key: DB_PASSWORD
|
||||
- name: POSTGRES_DB
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "weknora.secretName" . }}
|
||||
name: {{ include "academy.secretName" . }}
|
||||
key: DB_NAME
|
||||
- name: PGDATA
|
||||
value: /var/lib/postgresql/data/pgdata
|
||||
@@ -91,7 +91,7 @@ spec:
|
||||
- name: postgres-data
|
||||
{{- if .Values.postgresql.persistence.enabled }}
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.postgresql.persistence.existingClaim | default (printf "%s-postgres" (include "weknora.fullname" .)) }}
|
||||
claimName: {{ .Values.postgresql.persistence.existingClaim | default (printf "%s-postgres" (include "academy.fullname" .)) }}
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
@@ -111,14 +111,14 @@ spec:
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "weknora.serviceName" (dict "component" "postgresql" "context" .) | quote }}
|
||||
name: {{ include "academy.serviceName" (dict "component" "postgresql" "context" .) | quote }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "weknora.componentLabels" (dict "component" "database" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentLabels" (dict "component" "database" "context" .) | nindent 4 }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
{{- include "weknora.componentSelectorLabels" (dict "component" "database" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentSelectorLabels" (dict "component" "database" "context" .) | nindent 4 }}
|
||||
ports:
|
||||
- name: postgresql
|
||||
port: 5432
|
||||
|
||||
+12
-12
@@ -10,17 +10,17 @@ Persistent Volume Claims for stateful components.
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: {{ include "weknora.fullname" . }}-postgres
|
||||
name: {{ include "academy.fullname" . }}-postgres
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "weknora.componentLabels" (dict "component" "database" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentLabels" (dict "component" "database" "context" .) | nindent 4 }}
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.postgresql.persistence.size }}
|
||||
{{- include "weknora.storageClass" . | nindent 2 }}
|
||||
{{- include "academy.storageClass" . | nindent 2 }}
|
||||
---
|
||||
{{- end }}
|
||||
|
||||
@@ -29,17 +29,17 @@ spec:
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: {{ include "weknora.fullname" . }}-redis
|
||||
name: {{ include "academy.fullname" . }}-redis
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "weknora.componentLabels" (dict "component" "cache" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentLabels" (dict "component" "cache" "context" .) | nindent 4 }}
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.redis.persistence.size }}
|
||||
{{- include "weknora.storageClass" . | nindent 2 }}
|
||||
{{- include "academy.storageClass" . | nindent 2 }}
|
||||
---
|
||||
{{- end }}
|
||||
|
||||
@@ -48,17 +48,17 @@ spec:
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: {{ include "weknora.fullname" . }}-neo4j
|
||||
name: {{ include "academy.fullname" . }}-neo4j
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "weknora.componentLabels" (dict "component" "graph" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentLabels" (dict "component" "graph" "context" .) | nindent 4 }}
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.neo4j.persistence.size }}
|
||||
{{- include "weknora.storageClass" . | nindent 2 }}
|
||||
{{- include "academy.storageClass" . | nindent 2 }}
|
||||
---
|
||||
{{- end }}
|
||||
|
||||
@@ -67,15 +67,15 @@ spec:
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: {{ include "weknora.fullname" . }}-data-files
|
||||
name: {{ include "academy.fullname" . }}-data-files
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "weknora.componentLabels" (dict "component" "storage" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentLabels" (dict "component" "storage" "context" .) | nindent 4 }}
|
||||
spec:
|
||||
accessModes:
|
||||
{{- toYaml (.Values.dataFiles.persistence.accessModes | default (list "ReadWriteOnce")) | nindent 4 }}
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.dataFiles.persistence.size }}
|
||||
{{- include "weknora.storageClass" . | nindent 2 }}
|
||||
{{- include "academy.storageClass" . | nindent 2 }}
|
||||
{{- end }}
|
||||
+12
-12
@@ -9,32 +9,32 @@ Redis is used for stream management and async task queuing.
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "weknora.fullname" . }}-redis
|
||||
name: {{ include "academy.fullname" . }}-redis
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "weknora.componentLabels" (dict "component" "cache" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentLabels" (dict "component" "cache" "context" .) | nindent 4 }}
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "weknora.componentSelectorLabels" (dict "component" "cache" "context" .) | nindent 6 }}
|
||||
{{- include "academy.componentSelectorLabels" (dict "component" "cache" "context" .) | nindent 6 }}
|
||||
# Use Recreate strategy to avoid data corruption
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "weknora.componentSelectorLabels" (dict "component" "cache" "context" .) | nindent 8 }}
|
||||
{{- include "academy.componentSelectorLabels" (dict "component" "cache" "context" .) | nindent 8 }}
|
||||
spec:
|
||||
{{- include "weknora.imagePullSecrets" . | nindent 6 }}
|
||||
serviceAccountName: {{ include "weknora.serviceAccountName" . }}
|
||||
{{- include "academy.imagePullSecrets" . | nindent 6 }}
|
||||
serviceAccountName: {{ include "academy.serviceAccountName" . }}
|
||||
{{- with .Values.global.podSecurityContext }}
|
||||
securityContext:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: redis
|
||||
image: {{ include "weknora.redis.image" . }}
|
||||
image: {{ include "academy.redis.image" . }}
|
||||
imagePullPolicy: IfNotPresent
|
||||
{{- with .Values.redis.securityContext }}
|
||||
securityContext:
|
||||
@@ -52,7 +52,7 @@ spec:
|
||||
- name: REDIS_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "weknora.secretName" . }}
|
||||
name: {{ include "academy.secretName" . }}
|
||||
key: REDIS_PASSWORD
|
||||
ports:
|
||||
- containerPort: 6379
|
||||
@@ -87,7 +87,7 @@ spec:
|
||||
- name: redis-data
|
||||
{{- if .Values.redis.persistence.enabled }}
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.redis.persistence.existingClaim | default (printf "%s-redis" (include "weknora.fullname" .)) }}
|
||||
claimName: {{ .Values.redis.persistence.existingClaim | default (printf "%s-redis" (include "academy.fullname" .)) }}
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
@@ -107,14 +107,14 @@ spec:
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "weknora.serviceName" (dict "component" "redis" "context" .) | quote }}
|
||||
name: {{ include "academy.serviceName" (dict "component" "redis" "context" .) | quote }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "weknora.componentLabels" (dict "component" "cache" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentLabels" (dict "component" "cache" "context" .) | nindent 4 }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
{{- include "weknora.componentSelectorLabels" (dict "component" "cache" "context" .) | nindent 4 }}
|
||||
{{- include "academy.componentSelectorLabels" (dict "component" "cache" "context" .) | nindent 4 }}
|
||||
ports:
|
||||
- name: redis
|
||||
port: 6379
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Copyright 2025 Tencent
|
||||
SPDX-License-Identifier: MIT
|
||||
|
||||
Secrets for WeKnora components.
|
||||
Secrets for Academy components.
|
||||
|
||||
IMPORTANT: For production deployments, use one of these approaches:
|
||||
1. Set values via --set flags during installation
|
||||
@@ -17,7 +17,7 @@ randAlphaNum would re-roll on every `helm upgrade` and rotate SYSTEM_AES_KEY,
|
||||
making any data encrypted with the old key unreadable
|
||||
(e.g. tenants.api_key would surface as enc:v1:... in the UI).
|
||||
*/}}
|
||||
{{- $secretName := include "weknora.secretName" . }}
|
||||
{{- $secretName := include "academy.secretName" . }}
|
||||
{{- $existing := lookup "v1" "Secret" .Release.Namespace $secretName }}
|
||||
{{- $existingSystemKey := "" }}
|
||||
{{- if and $existing $existing.data }}
|
||||
@@ -32,7 +32,7 @@ metadata:
|
||||
name: {{ $secretName }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "weknora.labels" . | nindent 4 }}
|
||||
{{- include "academy.labels" . | nindent 4 }}
|
||||
type: Opaque
|
||||
stringData:
|
||||
# Database credentials
|
||||
@@ -45,7 +45,7 @@ stringData:
|
||||
# Application secrets
|
||||
JWT_SECRET: {{ required "secrets.jwtSecret is required" .Values.secrets.jwtSecret | quote }}
|
||||
# SYSTEM_AES_KEY 加密:tenants.api_key、模型 API key、向量库凭证、web search provider key、
|
||||
# WeKnoraCloud.AppSecret 等。(TENANT_AES_KEY 已废弃:v0.4.0 起加密统一用 SYSTEM_AES_KEY,
|
||||
# AcademyCloud.AppSecret 等。(TENANT_AES_KEY 已废弃:v0.4.0 起加密统一用 SYSTEM_AES_KEY,
|
||||
# Go 主应用不再读取 TENANT_AES_KEY,已从 Secret 中移除。)
|
||||
SYSTEM_AES_KEY: {{ $systemAesKey | quote }}
|
||||
{{- if .Values.neo4j.enabled }}
|
||||
|
||||
@@ -2,17 +2,17 @@
|
||||
Copyright 2025 Tencent
|
||||
SPDX-License-Identifier: MIT
|
||||
|
||||
ServiceAccount for WeKnora components.
|
||||
ServiceAccount for Academy components.
|
||||
Ref: https://helm.sh/docs/chart_best_practices/rbac/
|
||||
*/}}
|
||||
{{- if .Values.serviceAccount.create }}
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ include "weknora.serviceAccountName" . }}
|
||||
name: {{ include "academy.serviceAccountName" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "weknora.labels" . | nindent 4 }}
|
||||
{{- include "academy.labels" . | nindent 4 }}
|
||||
{{- with .Values.serviceAccount.labels }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
|
||||
@@ -44,7 +44,7 @@ class AppStorageTests(unittest.TestCase):
|
||||
def app(self, documents):
|
||||
return next(doc for doc in documents
|
||||
if doc["kind"] == "Deployment"
|
||||
and doc["metadata"]["name"] == "audit-weknora-app")
|
||||
and doc["metadata"]["name"] == "audit-academy-app")
|
||||
|
||||
def assert_data_claim(self, app, name):
|
||||
volumes = app["spec"]["template"]["spec"]["volumes"]
|
||||
@@ -93,10 +93,10 @@ class AppStorageTests(unittest.TestCase):
|
||||
app = self.app(documents)
|
||||
self.assertEqual(app["spec"]["replicas"], 1)
|
||||
self.assertEqual(app["spec"]["strategy"], {"type": "Recreate"})
|
||||
self.assert_data_claim(app, "audit-weknora-data-files")
|
||||
self.assert_data_claim(app, "audit-academy-data-files")
|
||||
pvc = next(doc for doc in documents
|
||||
if doc["kind"] == "PersistentVolumeClaim"
|
||||
and doc["metadata"]["name"] == "audit-weknora-data-files")
|
||||
and doc["metadata"]["name"] == "audit-academy-data-files")
|
||||
self.assertEqual(pvc["spec"]["accessModes"], ["ReadWriteOnce"])
|
||||
env = app["spec"]["template"]["spec"]["containers"][0]["env"]
|
||||
self.assertIn({"name": "STORAGE_TYPE", "value": "local"}, env)
|
||||
@@ -104,7 +104,7 @@ class AppStorageTests(unittest.TestCase):
|
||||
def data_files_claim(self, documents):
|
||||
return next(doc for doc in documents
|
||||
if doc["kind"] == "PersistentVolumeClaim"
|
||||
and doc["metadata"]["name"] == "audit-weknora-data-files")
|
||||
and doc["metadata"]["name"] == "audit-academy-data-files")
|
||||
|
||||
def test_data_files_claim_defaults_to_read_write_once(self):
|
||||
pvc = self.data_files_claim(self.documents())
|
||||
@@ -134,9 +134,9 @@ class AppStorageTests(unittest.TestCase):
|
||||
app = self.app(documents)
|
||||
self.assertEqual(app["spec"]["replicas"], 3)
|
||||
self.assertEqual(app["spec"]["strategy"]["type"], "RollingUpdate")
|
||||
self.assert_data_claim(app, "weknora-shared-files")
|
||||
self.assert_data_claim(app, "academy-shared-files")
|
||||
self.assertFalse(any(doc["kind"] == "PersistentVolumeClaim"
|
||||
and doc["metadata"]["name"] == "audit-weknora-data-files"
|
||||
and doc["metadata"]["name"] == "audit-academy-data-files"
|
||||
for doc in documents))
|
||||
|
||||
|
||||
|
||||
+6
-6
@@ -1,7 +1,7 @@
|
||||
# Copyright 2025 Tencent
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
# WeKnora Helm Chart Values
|
||||
# Academy Helm Chart Values
|
||||
#
|
||||
# Best Practices References:
|
||||
# - https://helm.sh/docs/chart_best_practices/values/
|
||||
@@ -117,7 +117,7 @@ app:
|
||||
# Docker sandbox talks to a local Engine API (often docker.sock = host root).
|
||||
# Leave false unless this is a private single-node install that also mounts
|
||||
# the daemon socket or points at a remote tcp:// daemon with TLS.
|
||||
WEKNORA_SANDBOX_DOCKER_ENABLED: "false"
|
||||
ACADEMY_SANDBOX_DOCKER_ENABLED: "false"
|
||||
|
||||
# -- Additional environment variables
|
||||
extraEnv: []
|
||||
@@ -390,7 +390,7 @@ ingress:
|
||||
className: nginx
|
||||
|
||||
# -- Ingress hostname
|
||||
host: weknora.example.com
|
||||
host: academy.example.com
|
||||
|
||||
# -- TLS configuration
|
||||
tls:
|
||||
@@ -414,7 +414,7 @@ ingress:
|
||||
# Use --set or external secret management (External Secrets Operator, Vault, etc.)
|
||||
#
|
||||
# Example installation:
|
||||
# helm install weknora ./helm \
|
||||
# helm install academy ./helm \
|
||||
# --set secrets.dbPassword=<secure-password> \
|
||||
# --set secrets.redisPassword=<secure-password> \
|
||||
# --set secrets.jwtSecret=<secure-random-string>
|
||||
@@ -425,7 +425,7 @@ secrets:
|
||||
# -- Database password (REQUIRED: change in production)
|
||||
dbPassword: ""
|
||||
# -- Database name
|
||||
dbName: weknora
|
||||
dbName: academy
|
||||
# -- Redis username (OPTIONAL: for Redis 6.0+ ACL)
|
||||
redisUsername: ""
|
||||
# -- Redis password (REQUIRED: change in production)
|
||||
@@ -434,7 +434,7 @@ secrets:
|
||||
jwtSecret: ""
|
||||
# -- System AES-256 key for database field encryption (must be exactly 32 bytes).
|
||||
# Encrypts: tenants.api_key, model API keys, vector store credentials,
|
||||
# web search provider keys, WeKnoraCloud.AppSecret.
|
||||
# web search provider keys, AcademyCloud.AppSecret.
|
||||
# STRONGLY RECOMMENDED to set this explicitly in production. If left empty, a
|
||||
# random 32-char value is generated on first install and reused on subsequent
|
||||
# `helm upgrade` via Secret lookup. However, if the Secret is ever
|
||||
|
||||
Reference in new issue
Block a user