Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

fix(helm): switch to volcengine defaults and add missing config fields (#822)

Qin Haojieb4127b377991
diff --git a/deploy/helm/README.md b/deploy/helm/README.md
index 9645d0676..9e9a8f9cb 100644
--- a/deploy/helm/README.md
+++ b/deploy/helm/README.md
@@ -14,8 +14,9 @@ Deploy OpenViking on Kubernetes using Helm.
```bash
helm install openviking ./deploy/helm/openviking \
- --set config.embedding.dense.api_key="YOUR_EMBEDDING_API_KEY" \
- --set config.vlm.api_key="YOUR_VLM_API_KEY"
+ --set config.server.root_api_key="YOUR_ROOT_API_KEY" \
+ --set config.embedding.dense.api_key="YOUR_VOLCENGINE_API_KEY" \
+ --set config.vlm.api_key="YOUR_VOLCENGINE_API_KEY"
```
### Install with Custom Values
@@ -47,19 +48,24 @@ config:
host: "0.0.0.0"
port: 1933
workers: 1
+ root_api_key: "your-secret-key"
embedding:
dense:
- api_base: "https://api.openai.com/v1"
- api_key: "your-key"
- provider: "openai"
- dimension: 3072
- model: "text-embedding-3-large"
+ api_base: "https://ark.cn-beijing.volces.com/api/v3"
+ api_key: "your-volcengine-api-key"
+ provider: "volcengine"
+ dimension: 1024
+ model: "doubao-embedding-vision-250615"
+ input: "multimodal"
max_concurrent: 10
vlm:
- api_base: "https://api.openai.com/v1"
- api_key: "your-key"
- provider: "openai"
- model: "gpt-4o"
+ api_base: "https://ark.cn-beijing.volces.com/api/v3"
+ api_key: "your-volcengine-api-key"
+ provider: "volcengine"
+ model: "doubao-seed-2-0-pro-260215"
+ temperature: 0.0
+ max_retries: 2
+ thinking: false
max_concurrent: 100
```
@@ -116,6 +122,7 @@ extraEnv:
| `resources.requests.cpu` | CPU request | `500m` |
| `resources.requests.memory` | Memory request | `1Gi` |
| `ingress.enabled` | Enable ingress | `false` |
+| `config.server.root_api_key` | API key required when server binds to 0.0.0.0 | `""` |
| `config` | Full ov.conf configuration object | See `values.yaml` |
| `extraEnv` | Additional environment variables | `[]` |
diff --git a/deploy/helm/openviking/templates/NOTES.txt b/deploy/helm/openviking/templates/NOTES.txt
index 8afef2617..a5feb1a8e 100644
--- a/deploy/helm/openviking/templates/NOTES.txt
+++ b/deploy/helm/openviking/templates/NOTES.txt
@@ -27,3 +27,15 @@ To access the OpenViking API:
IMPORTANT: Make sure to configure your embedding and VLM API keys in values.yaml
or via extraEnv before using OpenViking. The server will not function correctly
without valid model provider credentials.
+
+{{- if not .Values.config.server.root_api_key }}
+
+WARNING: config.server.root_api_key is not set. When the server binds to 0.0.0.0
+(the default), a root_api_key is REQUIRED for security. The server will refuse to
+start without it.
+
+Set it via:
+
+ helm upgrade {{ .Release.Name }} <chart> --set config.server.root_api_key="YOUR_SECRET_KEY"
+
+{{- end }}
diff --git a/deploy/helm/openviking/templates/deployment.yaml b/deploy/helm/openviking/templates/deployment.yaml
index 4b8838cfd..ae11d3c01 100644
--- a/deploy/helm/openviking/templates/deployment.yaml
+++ b/deploy/helm/openviking/templates/deployment.yaml
@@ -1,3 +1,6 @@
+{{- if gt (int .Values.replicaCount) 1 }}
+{{- fail "replicaCount must be 1. OpenViking uses RocksDB which does not support concurrent access from multiple pods sharing the same PVC." }}
+{{- end }}
apiVersion: apps/v1
kind: Deployment
metadata:
diff --git a/deploy/helm/openviking/values.yaml b/deploy/helm/openviking/values.yaml
index c1996b90d..08e232833 100644
--- a/deploy/helm/openviking/values.yaml
+++ b/deploy/helm/openviking/values.yaml
@@ -75,6 +75,16 @@ persistence:
config:
storage:
workspace: /app/data/openviking_workspace
+ vectordb:
+ name: context
+ backend: local
+ project: default
+ agfs:
+ port: 1833
+ log_level: warn
+ backend: local
+ timeout: 10
+ retry_times: 3
log:
level: INFO
output: stdout
@@ -82,21 +92,26 @@ config:
host: "0.0.0.0"
port: 1933
workers: 1
+ root_api_key: ""
cors_origins:
- "*"
embedding:
dense:
- api_base: ""
+ api_base: "https://ark.cn-beijing.volces.com/api/v3"
api_key: ""
- provider: "openai"
- dimension: 3072
- model: "text-embedding-3-large"
+ provider: "volcengine"
+ dimension: 1024
+ model: "doubao-embedding-vision-250615"
+ input: "multimodal"
max_concurrent: 10
vlm:
- api_base: ""
+ api_base: "https://ark.cn-beijing.volces.com/api/v3"
api_key: ""
- provider: "openai"
- model: "gpt-4o"
+ provider: "volcengine"
+ model: "doubao-seed-2-0-pro-260215"
+ temperature: 0.0
+ max_retries: 2
+ thinking: false
max_concurrent: 100
# Extra environment variables to set on the container.