Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions docs/.vitepress/deployment-context.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# 官网部署内容上下文

更新日期:2026-09-22。范围:官网内容、双语导航与阅读入口;不修改部署工具或环境。

## 内容目标

让读者完成:选择服务方式 → 准备环境 → 配置与预览 → 部署与验收 → 维护与排障。

托管服务、开源自建、Viking 私有交付分别说明。官网保留决策条件、操作主线、失败分支和验收标准;完整 CLI 参数、依赖初始化 SQL、授权操作细节继续指向对应随包手册。无需复制所有附件或增加与部署无关的产品页。

## 来源与证据范围

- 输入包:`viking-deploy-v0.3.0-20260922-87c30111.zip`,27,641,644 bytes。
- SHA-256:`11720a376d17d2a6d305854b6dc68b6e4e3d92851a94255298041fb3d1a80075`。这是本地下载记录,不是发布方签名证明。
- ZIP CRC 检查通过。静态读取包内手册;未运行 ovadmin、未接入集群、未执行部署与 smoke。
- 下载链接带签名,只用于取得输入,不写入站点、示例、日志附件或 llms.txt。
- `NOTICE.md` 将该包限定为授权测试材料,无生产、商用、对外服务或再分发授权。手册里的生产建议不覆盖此限制。本站内容以本地待审稿交付,公开发布前由内容负责人按实际授权范围确定可公开的内容;不分发原始手册、二进制或物料清单。

| 官网主题 | 随包依据 | 应保留的限制 |
| --- | --- | --- |
| 环境、资源、依赖 | `Viking部署手册.md` §1–5;`版本兼容性说明.md`;`基础组件配置要求.md` | 私有组合的规划参考不等于开源最低配置,不承诺容量或 HA |
| 安装主线 | `install.md`;`Viking部署手册.md` §6;`ovadmin使用手册.md` | VikingDB Ready 后部署 OpenViking;Operator 与 workspace 分开创建 |
| 授权首次启动 | `install.md`;部署手册 §6.4–6.5 | CRD、CR 与首次状态同步在导入前;不提供激活材料 |
| 模型与模板 | `Viking模型要求.md` §3、6 | CR 覆盖向量库维度,不覆盖 embedding 维度;修改源模板 |
| 验收 | 部署手册 §7–8;升级说明 §2.5 | 当前 generation Ready、License Active(如启用)、doctor、各产品 P0 分别验证 |
| 升级和排障 | `Viking升级说明.md`;ovadmin 手册 §3.9–4 | 配置备份不等于数据备份;回滚不可仅降镜像;失败先观测 |
| 开源 Helm 入口 | 仓库 `deploy/helm/README.md` | 使用 `deploy/helm/openviking`、`config.*` 字段与 root key;区别于私有 Operator |

版本冲突处理:部署手册把 Kubernetes 1.24+ 写为建议,版本兼容矩阵写为最低值。官网标明“兼容矩阵声明”,未补造最大版本。包版本 v0.3.0 不代表 runtime 版本。命令示例使用交付清单占位值,不沿用手册中的旧 runtime tag。

## 信息组织参考

- [MongoDB Ops Manager installation checklist](https://www.mongodb.com/docs/ops-manager/current/core/installation-checklist/):部署前先确定拓扑、安全和备份,区分测试安装与正式运行。
- [GitLab installation](https://docs.gitlab.com/install/):按 requirements、installation methods、offline、post-install、upgrade 组织任务入口。
- [GitLab requirements](https://docs.gitlab.com/install/requirements/):说明资源要求与工作负载的关系。

只借鉴任务路径,不引入 MongoDB / GitLab 的组件要求或容量数字作为 Viking 的结论。

## 站点适配位置

- `docs/{zh,en}/guides/19-deployment-checklist.md`:方式选择、条件与环境清单。
- `docs/{zh,en}/guides/20-private-deployment.md`:版本范围、物料、配置、安装、客户端与验收。
- `docs/{zh,en}/guides/21-private-operations.md`:配置生命周期、升级、回滚准备、故障表。
- `docs/{zh,en}/guides/03-deployment.md`:保留既有开源安装内容,增加新入口并修正 Helm 路径。
- `docs/.vitepress/docs-navigation.ts`:在“配置与部署”下、服务端部署之后增加“企业私有化部署”子栏目,依次放置部署前检查、安装与验收、升级与排障。
- `docs/.vitepress/theme/components/DocsHome.vue`:在既有“部署与运维”条目中增加“企业私有化部署”链接。
- 目录与搜索继续使用既有 Markdown 扫描机制;不再维护第二套页面清单。本文件置于 `.vitepress`,不进入网站正文和 llms.txt。

## 验证记录

改动前 `check:docs` 已报告 `zh/qa/harness-qa-plan.md` 缺少英文对应页。该文件是工作区已有内容,不纳入本次修复;验收应比较新增错误,不能删减检查来获得全绿。

本次验证结果:

- `npm run docs:build` 通过;构建仍有既有 promql / caddyfile 高亮回退提示。
- 文档一致性检查覆盖 100 篇英文、101 篇中文、1,104 个本地链接;仅保留改动前已有的 QA 页面英文缺失,无新增错误。
- 六个新页面进入生成 HTML、`llms.txt`、`docs-search-index.json`;本 context 与本次签名下载地址未进入公开文本产物。
- ego-browser 实测英文首页 → checklist → private deployment → operations;中文切换、首页入口、清单与安装页跳转通过。
- 首页“私有交付”筛选返回两个对应页面;全站关键词查询在远端不可用后回退本地,返回安装、运维、清单与服务端部署页。未验证远端检索;发布流程需同步并验收远端索引。
- 桌面页面与 390px 手机首页无整页横向溢出,截图检查通过。
- 未执行部署命令、集群验收、提交或线上发布。页面中的命令为随包手册静态核对结果。


## 阅读与导航调整(2026-09-22)

按用户要求,正文移除测试包适用范围、NOTICE 和测试用途声明;来源版本及其使用限制只作为本 context 的资料记录保留。正文保留影响实际操作的版本兼容、License 激活、容量与数据恢复约束,不由删除提示推导新的生产能力承诺。

企业私有化部署页标题后提供“联系我们获取部署物料”按钮。中文跳转 README_CN.md 的商业版本锚点,英文跳转仓库首页的 commercial-editions 锚点;复用 VitePress VPButton,在正文中保留段落间距并去掉链接下划线;不发送联系消息。

调整验证:构建通过;浏览器确认“企业私有化部署”为配置与部署下的可折叠子栏目,包含三篇页面。中英文 CTA 的实际 href 与用户指定地址一致,适用范围提示已移除。桌面与手机视口检查通过。文档一致性检查仍仅报告原有 QA 页面缺少英文版本。

栏目命名:统一使用 `Enterprise Deployment / 企业私有化部署`,覆盖侧栏、首页入口、页面标题与交叉引用;保留现有 URL。

恢复记录(2026-09-24):本次内容曾于 2026-09-22 在工作区完成但未提交,后被 `git clean` 清除;现依据当时的编辑记录在 main 上重放,并把侧栏改动从 `config.ts` 迁到已合入的 `docs-navigation.ts`。
32 changes: 32 additions & 0 deletions docs/.vitepress/docs-navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,25 @@ const guidesSidebar = {
}
} as const

const privateDeploymentSidebar = {
en: {
text: 'Enterprise Deployment',
items: [
['19-deployment-checklist.md', 'Deployment Checklist'],
['20-private-deployment.md', 'Install & Verify'],
['21-private-operations.md', 'Upgrades & Troubleshooting']
]
},
zh: {
text: '企业私有化部署',
items: [
['19-deployment-checklist.md', '部署前检查'],
['20-private-deployment.md', '安装与验收'],
['21-private-operations.md', '升级与排障']
]
}
} as const

type StructuredSidebarCopy = {
readonly overview: string
readonly topItems?: ReadonlyArray<readonly [string, string]>
Expand Down Expand Up @@ -570,6 +589,19 @@ function guidesSection(
collapsed = true
): DefaultTheme.SidebarItem {
const section = groupedSidebarSection(locale, 'guides', title, guidesSidebar[locale], collapsed)
const deploymentGroupTitle = locale === 'zh' ? '配置与部署' : 'Configuration & Deployment'
const deploymentGroup = section.items?.find((item) => item.text === deploymentGroupTitle)
if (deploymentGroup?.items) {
const serverIndex = deploymentGroup.items.findIndex((item) =>
item.link === `/${locale}/guides/03-deployment`
)
const copy = privateDeploymentSidebar[locale]
deploymentGroup.items.splice(serverIndex + 1, 0, {
text: copy.text,
collapsed: false,
items: copy.items.map((item) => configuredSidebarItem(locale, 'guides', item))
})
}
// Nest the Context Compilation pages under the "Integration & Extension" group.
const integrationGroupTitle = locale === 'zh' ? '集成与扩展' : 'Integration & Extension'
const integrationGroup = section.items?.find((item) => item.text === integrationGroupTitle)
Expand Down
1 change: 1 addition & 0 deletions docs/.vitepress/theme/components/DocsHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ const agents = [
<a :href="link('guides/01-configuration')">{{ t('Configuration', '基础配置') }}<span aria-hidden="true">↗</span></a>
<a :href="link('guides/04-authentication')">{{ t('Authentication', '身份认证') }}<span aria-hidden="true">↗</span></a>
<a :href="link('guides/05-observability')">{{ t('Observability', '可观测性') }}<span aria-hidden="true">↗</span></a>
<a :href="link('guides/20-private-deployment')">{{ t('Enterprise Deployment', '企业私有化部署') }}<span aria-hidden="true">↗</span></a>
</div>
</section>

Expand Down
9 changes: 7 additions & 2 deletions docs/.vitepress/theme/docs-catalog.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@ for (const locale of ['en', 'zh']) {
test(`${locale} map preserves sidebar order and compilation hierarchy`, () => {
const guides = data[locale].find(section => section.id === 'guides')!
const deployment = guides.pages.findIndex(page => page.file === '03-deployment.md')
assert.equal(guides.pages[deployment + 1].file, '04-authentication.md')
assert.equal(guides.pages[deployment].group, guides.pages[deployment + 1].group)
const enterprise = guides.pages.slice(deployment + 1, deployment + 4)
assert.deepEqual(enterprise.map(page => page.file), [
'19-deployment-checklist.md', '20-private-deployment.md', '21-private-operations.md'
])
assert.ok(enterprise.every(page => page.group.startsWith(`${guides.pages[deployment].group} / `)))
assert.equal(guides.pages[deployment + 4].file, '04-authentication.md')
assert.equal(guides.pages[deployment].group, guides.pages[deployment + 4].group)
const compilation = guides.pages.filter(page => page.href.includes('/context-compilation/'))
assert.ok(compilation.length > 0)
assert.ok(compilation.every(page => page.group.includes(' / ')))
Expand Down
3 changes: 2 additions & 1 deletion docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { h, defineAsyncComponent } from 'vue'
import DefaultTheme from 'vitepress/theme'
import DefaultTheme, { VPButton } from 'vitepress/theme'
import DocBreadcrumb from './components/DocBreadcrumb.vue'
import LocaleSwitch from './components/LocaleSwitch.vue'
import { useData, withBase } from 'vitepress'
Expand Down Expand Up @@ -321,6 +321,7 @@ export default {
})
},
enhanceApp({ app, router }: EnhanceAppContext) {
app.component('VPButton', VPButton)
app.component('DocsHome', defineAsyncComponent(() => import('./components/DocsHome.vue')))
if (import.meta.env.SSR || typeof window === 'undefined') return

Expand Down
2 changes: 2 additions & 0 deletions docs/.vitepress/theme/reading.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,5 @@
.VPNav .VPNavBar .content-body { gap: 5px; }
.VPNav .ov-docs-search-trigger { width: 43px; min-width: 43px; padding: 0 4px; }
}

.vp-doc a.VPButton { text-decoration: none; }
13 changes: 9 additions & 4 deletions docs/en/guides/03-deployment.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Server Deployment

Before provisioning a self-managed environment, review the [deployment checklist](19-deployment-checklist.md). If you have a VikingDB / OpenViking private deployment package, use [Enterprise Deployment](20-private-deployment.md) and [operations](21-private-operations.md).

OpenViking runs as an HTTP service. Choose who operates it before installing a server:

| Service | What you need |
Expand Down Expand Up @@ -404,12 +406,15 @@ To build the image yourself, pass an explicit OpenViking version:

### Kubernetes + Helm

The project provides a Helm chart located at `examples/k8s-helm/`:
This chart deploys the open-source service and is separate from the private delivery ovadmin / Operator workflow. See the [Helm README](https://github.com/volcengine/OpenViking/blob/main/deploy/helm/README.md) for chart parameters.

The project provides a Helm chart located at `deploy/helm/openviking/`:

```bash
helm install openviking ./examples/k8s-helm \
--set openviking.config.embedding.dense.api_key="YOUR_API_KEY" \
--set openviking.config.vlm.api_key="YOUR_API_KEY"
helm install openviking ./deploy/helm/openviking \
--set-string config.server.root_api_key="YOUR_ROOT_API_KEY" \
--set-string config.embedding.dense.api_key="YOUR_API_KEY" \
--set-string config.vlm.api_key="YOUR_API_KEY"
```

For a detailed cloud deployment guide (including Volcengine TOS + VikingDB + Ark configuration), see the [Cloud Deployment Guide](https://github.com/volcengine/OpenViking/blob/main/examples/cloud/GUIDE.md).
Expand Down
80 changes: 80 additions & 0 deletions docs/en/guides/19-deployment-checklist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
description: Choose hosted, self-managed, or private delivery and prepare infrastructure, models, storage, and acceptance checks.
---

# Deployment Checklist

Choose how the service will run before provisioning infrastructure. If you already have an endpoint and API key, connect through the [CLI quick start](../getting-started/02-quickstart.md).

| Goal | Deployment path | Next step |
| --- | --- | --- |
| Let the platform operate the infrastructure | Volcengine hosted OpenViking | [Hosted service entry](03-deployment.md) |
| Run the open-source service yourself | Python, Docker, or the open-source Helm chart | [Server deployment](03-deployment.md) |
| Deploy VikingDB / OpenViking on your infrastructure | Kubernetes, Operators, and ovadmin | [Enterprise Deployment](20-private-deployment.md) |

Private delivery has its own components, licensing, and configuration lifecycle. Requirements marked as private delivery do not apply to every OpenViking installation.

## For every self-managed installation

| Area | Decide before deployment | Reference |
| --- | --- | --- |
| Workload | Document count and size, vector dimensions, concurrency, ingestion frequency, retention | [Observability](05-observability.md) |
| Models | Provider, model name, API base, credentials, output dimensions, rate limits, timeouts, connectivity from the runtime | [Configuration](01-configuration.md) |
| Storage | Persistent workspace location, capacity, permissions, backup destination, restore procedure | [Storage](../concepts/05-storage.md), [snapshots](15-snapshot.md) |
| Network and identity | Client endpoint, TLS, DNS, proxy, administrator and application keys | [Public access](12-public-access.md), [authentication](04-authentication.md) |
| Operations | Owners for alerts, upgrades, credentials, and recovery | [Diagnostics](05-observability.md) |

Measure capacity with representative data. A running container or a successful health probe does not demonstrate that the deployment can handle your workload.

## Private delivery: versions and environment

Review the environment and version requirements below, then confirm component compatibility against your deployment package.

| Area | Requirement | Verify |
| --- | --- | --- |
| OS / CPU | Linux, x86_64 by default | arm64 requires matching images and binaries |
| Kubernetes | Compatibility matrix specifies 1.24+ | Actual version, CRDs, CNI, CSI, RBAC; no maximum version is declared |
| Helm / kubectl | Helm 3.x, not Helm 4; kubectl within one minor of the cluster | Tool versions on the deployment host |
| Profile | `standalone` for demos and reproductions; `cluster` for cluster evaluation | Choose a profile for the environment and verify replicas, scheduling, and recovery |
| Release combination | ovadmin, VikingDB, OpenViking runtime, and Operators form a delivery set | Record `ovadmin version --output json`; the archive version is not the runtime version |

The package gives a cluster planning reference of at least three machines with 32 CPU cores, 256 GiB RAM, and 2 TiB local disk per machine. **These are not minimum requirements for open-source OpenViking or a validated capacity guarantee.** Suitability depends on index size, vector dimensions, QPS, build concurrency, replicas, and dependency placement. A three-node deployment that also hosts infrastructure dependencies is a starting point for development, demos, or POCs.

## Private delivery: infrastructure checklist

| Area | Confirm |
| --- | --- |
| Permissions | Deployment kubeconfig; CRD and RBAC creation; Operator access to target namespaces; use the package permission matrix |
| Namespaces | Application and Operator namespaces, illustrated as `vikingdb` and `viking-system`; Secret scope |
| Scheduling | Default `cluster` selectors are `nodeLevel=online` / `nodeLevel=offline`; matching labels, tolerations, and resources |
| Registry | Full repository prefix, delivery tags, pull credentials; validate host login and cluster pulls separately |
| Storage | Available StorageClass; separate settings for VikingDB data, OpenViking workspace PVCs, and external dependencies |
| Network | Pod / Service DNS, API Server, dependency and model access, cluster DNS suffix, external endpoint and TLS |
| License | When enabled, a license matching the cluster fingerprint; expiry, renewal, and offline telemetry arrangements |

Review generated `local-path`, disk capacity, and node selectors before use. The default OpenViking workspace requests and limits are both 2 CPU / 4 GiB; these are configuration defaults, not workload sizing results.

The `cluster` delivery expects infrastructure supplied by the customer or prepared through the delivery plan:

| Component | Package recommendation | Declared minimum / condition |
| --- | --- | --- |
| MySQL | 8.0 | 5.7+ |
| Redis | 6.2.x | No minimum declared |
| Kafka | 3.x | 3.0+ |
| ZooKeeper | 3.7.2 | No minimum declared |
| HDFS | 3.3.x | High-availability topology |
| HBase | 2.5.x | Depends on HDFS and ZooKeeper |

This records the package's compatibility statement, not an ongoing certification. In addition to connectivity, verify databases, topics, namespaces, directories, permissions, and initialization against the bundled infrastructure requirements. Re-run acceptance checks after dependency changes.

## Model integration checks

- Embedding must return fixed-size dense vectors. Align actual output, `embedding.dense.dimension`, and vector database dimensions.
- Confirm whether the API base includes `/v1` or `/api/v3`. Text and multimodal embedding may use different paths and request bodies; “OpenAI compatible” alone is insufficient.
- VLM / LLM supports understanding, summaries, and memory extraction. Validate image input for image tasks and tool calls for agents that use tools.
- Test authentication, DNS, certificates, and timeouts from the Pod network. Connectivity from a laptop does not establish Pod connectivity.
- Changing embedding models can change vector semantics even when dimensions match. Plan index rebuilding before switching an existing dataset.

In private delivery, `OpenVikingWorkspace.spec.vectordb.dimension` overrides the template's storage dimension, but does not change `embedding.dense.dimension`. Check both.

Continue to [Enterprise Deployment](20-private-deployment.md) and [upgrades and troubleshooting](21-private-operations.md).
Loading