Skip to content

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

15.9 KB
Raw Blame

description: Deploy VikingDB and OpenViking through configuration preview, VikingDB, OpenViking Workspaces, and P0 acceptance.

Enterprise Deployment

Deploy VikingDB and OpenViking in your own Kubernetes cluster using the deployment package. Complete the deployment checklist first. For Python, Docker, or the open-source Helm chart, see server deployment.

1. Get materials and sync images

Deployment materials are available on request. Register your email through the commercial editions form. After review, the package download link and a trial license are sent to that email.

After extracting the package, check bin/ovadmin, viking-docs/, and the delivery manifest. The package contains only the CLI and documentation. Download the runtime images listed in vikinglist, then import them into the customer Registry. Skip this section if the images are already in your Registry.

Run these commands on the deployment host. Replace all placeholders. ovadmin manages the deployment; ov is the application client CLI.

export VIKING_HOME=/opt/viking-deploy
export CONFIG_DIR=/opt/viking-deploy/conf
export MATERIAL_DIR=/opt/viking-deploy/materials
export IMAGE_REGISTRY='<registry.example.com/team/viking>'
export PATH="${VIKING_HOME}/bin:${PATH}"

ovadmin version --output json

# Download image archives into ${MATERIAL_DIR}/repo
ovadmin material download --listfile "${VIKING_HOME}/vikinglist" \
  --output-dir "${MATERIAL_DIR}"

# Log in to the Registry first (docker login or skopeo login), then import and verify
ovadmin material import-registry --repo-dir "${MATERIAL_DIR}/repo" \
  --registry "${IMAGE_REGISTRY}"
ovadmin material check-registry --listfile "${VIKING_HOME}/vikinglist" \
  --image-registry "${IMAGE_REGISTRY}"

Download URLs in vikinglist are signed and expire. If you get HTTP 403, ask the delivery team for a fresh list. If the deployment host cannot reach the URLs, download on a connected machine and copy the repo directory over. Without a Docker daemon, run skopeo login and add --skopeo-bin "$(command -v skopeo)" to import-registry. Tags that already exist in the Registry are skipped, so reruns are safe. Continue once check-registry reports no missing images.

When importing:

  • If the Registry does not create repositories on push (for example Amazon ECR), list the target images with import-registry --dry-run and create each repository first.
  • --crane-bin passes the .tar.gz files straight to crane push, which only accepts uncompressed tar and fails with archive/tar: invalid tar header. Use --skopeo-bin, or gunzip each file and push it with crane push <file>.tar <target>.
  • import-registry stops the whole batch at the first failure. Fix the cause and rerun; tags already imported are skipped.

Initialization images are not in vikinglist. When dependencies are initialized by Flyway (option two in the bundled infrastructure requirements), the initialization Jobs reference the three images below by default. They are public Docker Hub images; copy them into the matching Registry paths yourself:

Purpose Default reference Public source
MySQL DDL ${IMAGE_REGISTRY}/infra/apecloud/mysql:8.0.39 docker.io/apecloud/mysql:8.0.39
Kafka topics ${IMAGE_REGISTRY}/infra/apecloud/kafka:3.8.1-debian-12-r2 docker.io/apecloud/kafka:3.8.1-debian-12-r2
HBase tables, HDFS directory ${IMAGE_REGISTRY}/infra/apecloud/hbase-hmaster:v2.5.6-1.0.0 docker.io/apecloud/hbase-hmaster:v2.5.6-1.0.0
crane copy docker.io/apecloud/mysql:8.0.39 "${IMAGE_REGISTRY}/infra/apecloud/mysql:8.0.39"
crane copy docker.io/apecloud/kafka:3.8.1-debian-12-r2 "${IMAGE_REGISTRY}/infra/apecloud/kafka:3.8.1-debian-12-r2"
crane copy docker.io/apecloud/hbase-hmaster:v2.5.6-1.0.0 "${IMAGE_REGISTRY}/infra/apecloud/hbase-hmaster:v2.5.6-1.0.0"

To use your own client images, set their repository and tag under spec.global.flywayInitImages in vdb.yaml. The MySQL DDL ships inside ovadmin and runs from the Flyway Job; the package has no separate SQL files.

setup apply --dry-run checks every image in the Registry, so the full plan is only available after both application and initialization images are synchronized.

Isolated environments also need infrastructure dependencies, model services, and a license renewal / telemetry return plan. Having the images in place does not make the system fully offline-ready.

2. Generate and edit configuration

ovadmin init config \
  --dir "${CONFIG_DIR}" \
  --profile cluster \
  --image-registry "${IMAGE_REGISTRY}" \
  --image-pull-secret viking-registry-secret \
  --openviking-storage-class '<storage-class-name>'

Edit the generated configuration before deploying:

File or object Responsibility
ovadmin.conf Cluster access, configuration directory, OpenViking image, workspace resources and storage
vdb.yaml VikingDB images, dependency references, scheduling, storage, and observability
ConfigMap Template Base OpenViking runtime configuration
Secret Template Model credentials and other sensitive configuration in ov.conf.secret
OpenVikingWorkspace Workspace declaration, including storage and vector database overrides
Generated *.ovcli.conf Client endpoint and API key; handle as credentials

The full image prefix includes the repository path. Use Operator image names from the manifest: this release uses vikingdb_operator and openviking_operator, with underscores. Use tags from the delivery set, not old example tags.

Label nodes for scheduling. cluster needs at least 2 online nodes and 1 offline node; standalone schedules components on online nodes.

kubectl label node '<node-name>' nodeLevel=online --overwrite
kubectl label node '<offline-node-name>' nodeLevel=offline --overwrite
kubectl get nodes -L nodeLevel

Also add or change these items in the generated vdb.yaml to match your environment:

Item Why What to do
spec.middleware.hdfs.configMapName init config does not generate it; without it, dry-run does not check the HDFS ConfigMap either Add hdfs: {configMapName: hadoop-config}, matching the actual ConfigMap name
spec.observability.oneAgent.enabled Defaults to true in the cluster profile, and one-agent writes into a viking-infra namespace; without the matching observability stack, apply fails with namespaces "viking-infra" not found Set to false if the matching observability stack is not deployed
Component replicas and resources Defaults assume large nodes and may exceed node pool capacity Size to the allocatable capacity of your node pools; see the deployment checklist
spec.tbase scheduling This release's Operator does not render tolerations under spec.tbase into tbase-api / tbase-scan, and direct Deployment edits are rejected by the license webhook If dedicated nodes are tainted, use spec.tbase.nodeSelector to place tbase on untainted nodes with enough capacity

When dedicated nodes are tainted, tolerations set per component in vdb.yaml take effect for the other components.

The HDFS model directory must be writable by root (see the deployment checklist for why). Flyway creates the directory as user hadoop with mode 755 by default, while fermat writes as root at runtime. After the directory exists, add an ACL as the HDFS administrator:

hdfs dfs -setfacl -R -m user:root:rwx,default:user:root:rwx,default:user:hadoop:rwx /home/vikingdb_data
hdfs dfs -getfacl /home/vikingdb_data

If HDFS ACLs are disabled, use hdfs dfs -chown -R root /home/vikingdb_data or another method that fits your policies. Without write access, VikingDB still reports Ready but indexes stay in INIT.

Then check namespaces, external Secret / ConfigMap references, and StorageClass. Complete dependency initialization using the bundled infrastructure requirements. Run preflight checks and initialize pull Secrets for namespaces configured in the delivery:

ovadmin -c "${CONFIG_DIR}/ovadmin.conf" check
ovadmin -c "${CONFIG_DIR}/ovadmin.conf" init secret --all-namespaces

3. Deploy VikingDB

ovadmin -c "${CONFIG_DIR}/ovadmin.conf" setup apply \
  --module vikingdb --dir "${CONFIG_DIR}" --dry-run

Review namespaces, images, pull Secrets, dependencies, resources, and scheduling. Resolve mismatches before applying:

ovadmin -c "${CONFIG_DIR}/ovadmin.conf" setup apply \
  --module vikingdb --dir "${CONFIG_DIR}" --yes

When licensing is enabled, the first apply may exit while waiting for License Active. By then the VikingDbCluster CR exists. After the Operator completes its first status sync, generate a fingerprint for this cluster, send it to the license issuer for a .vlic, import it, and repeat apply with the same configuration:

ovadmin -c "${CONFIG_DIR}/ovadmin.conf" license fingerprint \
  --system-namespace viking-system --out fingerprint.json

# After receiving a .vlic issued for this cluster's fingerprint
ovadmin -c "${CONFIG_DIR}/ovadmin.conf" license import \
  --system-namespace viking-system --file '<license.vlic>'
ovadmin -c "${CONFIG_DIR}/ovadmin.conf" license status

The .vlic must be issued from this cluster's fingerprint.json. A fingerprint from another cluster, or an edited file, fails verification.

With online licensing, no fingerprint or .vlic is needed. Likewise wait for the CR's first status sync, activate with the one-time activation code, and repeat apply with the same configuration:

ovadmin -c "${CONFIG_DIR}/ovadmin.conf" license activate \
  --system-namespace viking-system \
  --code '<activation-code>' \
  --endpoint 'https://<license-endpoint>' \
  --yes
ovadmin -c "${CONFIG_DIR}/ovadmin.conf" license status vikingdb

An activation code can succeed only once; keep it out of configuration files, scripts, and logs. After activation, license status shows Mode online; the Operator handles renewal and telemetry, and stores the renewal credential in viking-system/viking-license-renewal. Offline and online licensing cannot be mixed. While waiting for a license, the CR reason always reads provide offline .vlic via import secret; in an online-licensed environment, activate as described here.

Skip licensing steps when licensing is disabled. Verify VikingDB before proceeding:

ovadmin -c "${CONFIG_DIR}/ovadmin.conf" cluster get vikingdb
ovadmin -c "${CONFIG_DIR}/ovadmin.conf" doctor
ovadmin -c "${CONFIG_DIR}/ovadmin.conf" check smoketest --target vdb --p0

Replace vikingdb if your cluster has a different name. Smoke tests create test objects and perform writes; run them in the agreed acceptance environment.

4. Deploy OpenViking and create a Workspace

Skip this step for a VikingDB-only delivery.

First write the model configuration into a Secret Template. It uses the same structure as ov.conf. The example below uses the default Volcengine Ark models, with a 1024-dimension embedding. For other model services, also check the API protocol and dimension; see model integration checks.

{
  "embedding": {
    "dense": {
      "provider": "volcengine",
      "model": "doubao-embedding-vision-251215",
      "api_base": "https://ark.cn-beijing.volces.com/api/v3",
      "api_key": "<embedding-api-key>",
      "dimension": 1024,
      "input": "multimodal"
    }
  },
  "vlm": {
    "provider": "volcengine",
    "model": "doubao-seed-2-0-lite-260428",
    "api_base": "https://ark.cn-beijing.volces.com/api/v3",
    "api_key": "<vlm-api-key>"
  }
}

Save it as ov.conf.secret, load it into a Secret, then delete the local plaintext file:

kubectl -n vikingdb create secret generic openviking-secrets \
  --from-file=ov.conf.secret=ov.conf.secret \
  --dry-run=client -o yaml | kubectl apply -f -

Then preview and install the OpenViking Operator, and create the workspace:

ovadmin -c "${CONFIG_DIR}/ovadmin.conf" setup apply \
  --module openviking --dir "${CONFIG_DIR}" --dry-run

# Apply after reviewing the preview
ovadmin -c "${CONFIG_DIR}/ovadmin.conf" setup apply \
  --module openviking --dir "${CONFIG_DIR}" --yes

export WORKSPACE_NAME='<workspace-name>'
ovadmin -c "${CONFIG_DIR}/ovadmin.conf" workspace create "${WORKSPACE_NAME}" \
  --namespace vikingdb \
  --image '<runtime-image-from-delivery-manifest>' \
  --conf-template '<configmap-template-name>' \
  --conf-secret openviking-secrets \
  --wait

ovadmin -c "${CONFIG_DIR}/ovadmin.conf" workspace get "${WORKSPACE_NAME}"

Installing the Operator does not create the workspace. For an existing workspace, follow the package's workspace update procedure.

Configuration is merged in this order: ConfigMap Template → Secret Template → Workspace CR spec.vectordb / spec.storage overrides. The result is stored in <workspace-name>-ov-conf and mounted at /app/ov.conf. Edit source templates or the CR, not the generated Secret or Pod file. See operations for applying template changes.

5. Connect and verify

export OV_CLIENT_CONF="${CONFIG_DIR}/${WORKSPACE_NAME}.ovcli.conf"
ovadmin -c "${CONFIG_DIR}/ovadmin.conf" workspace gen-conf "${WORKSPACE_NAME}" \
  --output "${OV_CLIENT_CONF}"
chmod 600 "${OV_CLIENT_CONF}"

ovadmin -c "${CONFIG_DIR}/ovadmin.conf" check smoketest \
  --target openviking --p0 --openviking-conf "${OV_CLIENT_CONF}"

The generated configuration contains a Root API Key for initialization and administration. Application data access requires a User / Admin Key; the P0 smoke provisions a test User Key. Do not commit the client configuration or copy it into logs.

The generated configuration stores the Root API Key in the api_key field. Recent ov CLI versions read root_api_key for --sudo administration commands, so first add a root_api_key field with the same value, then register an application user and write the returned User Key back into api_key:

ov admin register-user default '<user-id>' --sudo

Everyday ov commands then use the User Key; keep root_api_key for administration only.

For an in-cluster client, use gen-conf --endpoint-type service. For an external client, supply a reachable entry point with --endpoint '<openviking-endpoint>'. Generating configuration does not create Ingress, TLS, or a load balancer. Add --force only after deciding to overwrite an existing output file.

The deployment is complete when all of the following hold:

  • All nodes are Ready, and no application Pod is Pending, in ImagePullBackOff, or restarting repeatedly.
  • check-registry reports no missing images; materials and running versions match.
  • VikingDbCluster is Ready for its current generation; OpenVikingWorkspace is Ready when OpenViking is deployed.
  • With licensing enabled, license status vikingdb shows State Active, and the viking-license-verdict Secret exists in the application namespace.
  • doctor passes, and VikingDB P0 and OpenViking P0 each pass.
  • The application client can authenticate, import, read, and retrieve through its actual endpoint.

Running Pods do not replace these checks, and these checks do not establish capacity, recoverability, or high availability. After deployment, connect with the generated client configuration using the CLI quickstart.

Bundled reference manuals

Under viking-docs/, consult install.md (entry point), Viking部署手册.md (full procedure), ovadmin使用手册.md (arguments), Viking模型要求.md (model templates), 基础组件配置要求.md (dependency initialization), 版本兼容性说明.md (compatibility), and Viking升级说明.md (upgrades). Continue with upgrades and troubleshooting.