Cloud and BYOC for Orca Agent Engine are in Private Preview — request an invite
Docs

Deploy on Kubernetes

Install Orca Agent Engine with its Helm chart against external databases, object storage, a broker, and a sandbox service.

The Agent Engine v0.5.1 release chart installs the registry, harness server, AI Gateway, and an optional CLI toolset. It can also install an observability exporter. It does not install Postgres, Kafka, Pulsar, object storage, OpenSandbox, or an environment worker. To run target=self_hosted sessions, connect an environment worker separately through the registry's public tunnel. The local self-hosted worker stack exercises that path.

Prepare dependencies

DependencyChart values or credentials
PostgresRegistry, file-store, and memory-store database URLs under external.databases or Kubernetes Secrets. A transcript-store database URL is also needed when transcriptStore.backend=postgres.
Transcript backendtranscriptStore.backend selects kafka (default), postgres, or pulsar. Configure the selected backend's connection settings.
Object storageConfigure objectStorage and its credentials. Sandbox mounts need a scoped STS role through objectStorage.stsRoleArn; static credentials are a development-only escape hatch.
Sandbox serviceThe default harness.sandboxRuntime=opensandbox needs an external OpenSandbox server and an allowed sandbox image. Other supported runtimes have their own settings.
AI Gateway auditThe in-chart gateway enables a required Kafka audit sink through aiGateway.audit.kafka, even when the transcript backend is Postgres or Pulsar.
CredentialsSupply the session JWT signing key, provider keys, database URLs, and storage credentials through Kubernetes Secrets. The chart's secretStore.mode=kubernetes stores registry vault credentials in a dedicated Secret.

The gateway image is released independently of the Engine images. Pin images.aiGateway.repository and images.aiGateway.tag to a pullable build that supports the chart's dynamic MCP destination and vault resolvers. Configure imagePullSecrets if that registry requires authentication. The chart's default gateway tag is a development pin, not a compatibility guarantee for a newer Engine checkout. For a separately installed gateway, set aiGateway.enabled=false and configure its Service URL and ServiceAccount identity as described in the chart README. See Install the gateway for its own Helm chart.

The registry's internal listener uses projected Kubernetes ServiceAccount tokens and TokenReview by default. The Helm installer needs permission to create a ClusterRoleBinding to system:auth-delegator. Internal traffic is plain HTTP unless your cluster supplies mTLS or equivalent transport security. See the engine's Kubernetes deployment guide for SecretStore RBAC, TLS, and upgrade requirements.

Install

Create my-values.yaml with dependency endpoints and Secret references from the chart's v0.5.1 values file. The chart can use a chart-managed Secret, an existing database Secret, or per-service Secret references. Do not put plaintext production credentials in my-values.yaml. Add these public image pins to the same file; the gateway follows its own release line:

my-values.yaml
images:
  registry:
    repository: docker.io/streamnative/orca-registry-service-ts
    tag: "0.5.1"
  harness:
    repository: docker.io/streamnative/orca-harness-server
    tag: "0.5.1"
  observabilityExporter:
    repository: docker.io/streamnative/orca-observability-exporter
    tag: "0.5.1"
  aiGateway:
    repository: docker.io/streamnative/orca-ai-gateway
    tag: "0.4.3"
  sandboxHarness:
    claudeCode:
      repository: docker.io/streamnative/sandbox-harness-claude-code
      tag: "0.5.1"
      digest: sha256:80cfee4761746bc167b5073e6d7236baddea6756cf31a00bbeb5b600e31cdd24
toolset:
  enabled: false

The packaged Engine chart points at GHCR images. This guide overrides Registry, Harness, exporter, Gateway, and sandbox harness with public Docker Hub releases. Its default toolset is the older CLI v0.2.0; this guide disables it and uses the public ork v0.5.0 install on the client host. Keep these image pins when you add external storage, broker, and credential values.

To enable trace export, add the optional observability exporter values before rendering and installing the chart. Target credentials and capture policy are configured separately through the admin API.

If you run the Claude Code harness in OpenSandbox with the Docker Hub mirror, configure its patched server with ORCA_TRUSTED_SANDBOX_REPOSITORY_PREFIXES='["docker.io/streamnative"]'. That setting authorizes the exact sandbox image repositories under the mirror prefix; see the engine's OpenSandbox trust policy.

Download the release chart and check the rendered manifests before installing:

Render and install
curl -fsSLO https://github.com/orca-ae/orca-agent-engine/releases/download/v0.5.1/orca-managed-agents-0.5.1.tgz
helm template orca-managed-agents ./orca-managed-agents-0.5.1.tgz -f my-values.yaml
helm upgrade --install orca-managed-agents ./orca-managed-agents-0.5.1.tgz \
  --namespace orca-managed-agents --create-namespace \
  -f my-values.yaml

Bootstrap and connect

After the registry is ready, run the offline registry:bootstrap-admin command once with database access. It creates the first organization, Workspace, organization admin key, and platform key. Use the organization admin key on the admin listener to mint a Workspace API key; registry:create-admin-key is for rotating an admin key, not the initial Workspace-key step. Follow Workspace administration for the command inputs and key handling.

Expose only the registry's public listener to clients. Keep its internal and admin listeners private. Set the client URL to that listener's host root and follow Connect to the registry for the correct credential header. Anthropic SDKs can use the Claude Managed Agents beta header, but check the conformance matrix for partial operations.

The chart's regular Ingress routes the whole public listener. If you enable its Istio Gateway and AuthorizationPolicy instead, the default allowedPaths includes only /v1/*. Add /api, /apis, /apis/*, and /api/v1/* when clients need version and group discovery or the core alias. A worker connecting from outside the cluster also needs the public /v1/tunnels/* WebSocket path, covered by /v1/*.

Optional observability exporter

The observability exporter reads Kafka session events and sends projected traces to a supported OTLP endpoint. It is a separate process from the registry and harness. The Helm chart includes an optional workload, disabled by default; enabling the workload does not create tenant bindings or authorize raw content capture.

Prerequisites

  • A running registry with its database migrations applied and a write-capable SecretStore.
  • Kafka Transcript storage, with transactions and read_committed support. A Pulsar Transcript backend is not supported; a Kafka-compatible endpoint still needs those Kafka capabilities.
  • Matching Kafka brokers, topic prefix, encoding, TLS, and authentication for the exporter.
  • Access to the registry internal listener, plus a dedicated workload identity.
  • DNS and direct public HTTPS access to the supported traces endpoint.

The default Kafka state backend needs no exporter Postgres database. Registry's own Postgres database remains required. The exporter's scratch directory is disposable local indexing space, not its durable source of truth.

Enable the optional Helm workload

Use a chart/image release that contains the exporter workload and the state format you intend to run. Checked-in development image defaults are not proof that an image has been published. The packaged chart uses its release image namespace and appVersion; override images.observabilityExporter.repository and tag only with a verified image.

Add these settings to your complete my-values.yaml from Install, replacing the broker address and supplying exporter-specific Kafka Secret references when authentication is used:

Exporter values for a test deployment
transcriptStore:
  backend: kafka
  kafka:
    brokers: kafka.example:9092
observabilityExporter:
  enabled: true
  replicaCount: 1
  stateBackend: kafka
  kafkaStateSizeLimit: 2Gi
  secretKeyRefs: {}

The chart creates a Deployment and ConfigMap, not a Service or Ingress. It uses a dedicated ServiceAccount with an audience-bound projected token, reread on each registry resolver request. Registry must authorize that identity and have TokenReview access. Do not replace it with a harness or gateway identity.

The exporter inherits non-secret Kafka settings from transcriptStore.kafka, but receives neither the chart-wide Secret nor Registry database credentials. Map Kafka credentials through observabilityExporter.secretKeyRefs; provide TLS files through extraVolumes and extraVolumeMounts. Referenced environment Secret changes need a pod restart; the projected workload token rotates without one. Langfuse or Litefuse project keys belong in Registry SecretStore through the admin API, not in these values.

When upgrading an installation from before the workload existed, use helm upgrade --reset-values with a complete operator values file. Preserve all existing overrides before adding the exporter settings; --reuse-values can retain an incomplete exporter schema.

Run a standalone process

From a built Engine checkout, configure the registry internal origin, matching Kafka settings, and exactly one workload token source. In a non-Kubernetes deployment, this token must match Registry's configured internal authentication. Do not use an admin or public Workspace key.

Start the exporter
pnpm --filter @orca/observability-exporter... build
TRANSCRIPT_STORE_BACKEND=kafka \
OBSERVABILITY_EXPORTER_STATE_BACKEND=kafka \
REGISTRY_INTERNAL_BASE_URL=http://localhost:8081 \
INTERNAL_SERVICE_TOKEN_FILE=/run/secrets/internal-service-token \
KAFKA_BROKERS=localhost:9092 \
pnpm --filter @orca/observability-exporter start

Use Node 22 and the Engine checkout's supported pnpm version. The exporter HTTP listener binds port 8080. Run it in a separate network namespace/container from a registry using that port, or configure the registry's public listener on a different port before starting both on one host. The exporter does not expose a health-port configuration option.

Runtime configuration

SettingDefaultPurpose
TRANSCRIPT_STORE_BACKENDkafkaMust be Kafka for this exporter.
OBSERVABILITY_EXPORTER_STATE_BACKENDkafkaBroker-native state; postgres selects the legacy exporter runtime.
REGISTRY_INTERNAL_BASE_URLRequiredHTTP(S) origin of the internal listener, not the OTLP target or admin URL.
INTERNAL_SERVICE_TOKEN / INTERNAL_SERVICE_TOKEN_FILEExactly one requiredWorkload credential; token files are reread per resolver request.
OBSERVABILITY_REGISTRY_REQUEST_TIMEOUT_MS10000Kafka-mode resolver timeout, from 1 to 15000 ms.
KAFKA_BROKERSlocalhost:9092Comma-separated bootstrap brokers.
KAFKA_TOPIC_PREFIXEmptyMust match Transcript storage; nonempty prefixes are dot-terminated.
KAFKA_CONNECTION_MODEplaintextplaintext, custom, streamnative-kafka, or streamnative-pulsar; the last is a Kafka protocol connection, not Pulsar Transcript.
KAFKA_TOPIC_REDISCOVER_INTERVAL_MS1000Session-topic discovery interval.
OBSERVABILITY_PROJECTOR_BATCH_SIZE100Source records per Kafka batch, from 1 to 1000.

Custom Kafka connections support TLS via KAFKA_SSL and CA/certificate/key files, and SASL/PLAIN via KAFKA_SASL_MECHANISM, KAFKA_SASL_USERNAME, and KAFKA_SASL_PASSWORD. Match the broker's authentication; do not disable certificate verification to bypass connection failures.

For Avro Transcript, use the same codec and Schema Registry configuration as the producer. Avro and raw modes discover different session topics and use separate internal topic namespaces; a restart is not an encoding migration. The Engine's exporter configuration reference lists all Kafka connection, codec, and legacy-only settings.

Capacity and recovery limits

Kafka settingDefaultMeaning
OBSERVABILITY_KAFKA_STATE_DIRECTORYOS temporary directory; image/chart use /var/run/orca/exporter-stateWritable scratch parent; each runtime builds a new index.
OBSERVABILITY_KAFKA_STATE_MAX_BYTES1 GiBDatabase/journal quota; usable database pages are approximately one third of this budget.
OBSERVABILITY_KAFKA_STATE_CATCHUP_TIMEOUT_MS120000Shared-reader barrier/catch-up deadline.
OBSERVABILITY_KAFKA_MAX_ASSEMBLY_BYTES32 MiBDecoded JSON limit per assembled reducer/delivery blob.
OBSERVABILITY_KAFKA_MAX_TRANSACTION_BYTES64 MiBSerialized transaction budget including keys and framing.
OBSERVABILITY_KAFKA_STARTUP_CONCURRENCY8Concurrent source connect/join admission.
OBSERVABILITY_KAFKA_RESTORE_CONCURRENCY2Concurrent assignment restores.
OBSERVABILITY_KAFKA_PROJECTOR_CONCURRENCY2Concurrent source projection.

Kafka-mode Helm uses Recreate and a disk-backed emptyDir, defaulting to 2Gi. Align volume and ephemeral-storage resources with the runtime quota and journal overhead. Raising an assembly limit does not increase other collection, transaction, or process-memory limits. Resource/identity validation failures stop the instance; restarting or resetting offsets does not repair corruption.

Kafka topics and permissions

Startup creates missing internal topics and validates existing policies without repairing them. Names include KAFKA_TOPIC_PREFIX. Each source session topic and the checkpoint topic have one partition; the delivery topic is created with eight.

Internal topic suffixRequired policy
orca.observability.v1.checkpointscleanup.policy=compact, not compact,delete
orca.observability.v1.deliverycleanup.policy=delete, retention.ms=-1, retention.bytes=-1

Avro mode uses checkpoints-avro and delivery-avro suffixes. Internal values remain JSON. Unlimited delivery retention includes completed records; it is not an automatic cleanup policy. Raw capture can store unredacted content in these records and the scratch index.

Grant the exporter principal:

  • Metadata discovery, Describe, and Read for authorized session topics. Preserve unread source data.
  • Describe, DescribeConfigs, Read, and Write for internal topics; Create if not pre-provisioned.
  • Read/Describe for stable source/delivery groups and temporary orca-exporter-restore- groups.
  • Transactional/idempotent-producer permissions for the stable source and delivery transactional IDs.

Do not grant a single guessed consumer-group name. The exact prefix/hash-derived group and transactional-ID grammar is in the Engine's namespace and ACL reference. Keep the prefix, encoding, groups, and transactional IDs stable across replicas and restarts.

Health and diagnostics

The process exposes GET /healthz and GET /readyz. Kafka readiness requires initial discovery, a ready runtime, and a successful Kafka Admin topic-list check; it does not query Postgres. It does not prove assignment restore completion, backlog catch-up, Registry authorization, binding validity, or remote ingestion. There is no Prometheus metrics endpoint.

Fixed-schema JSON diagnostics report admission, recovery, scratch usage, and resource budgets without I/O bodies or credentials. Transient initial metadata-listing failures can keep the process Live but NotReady while retrying; authentication and configuration errors are not availability retries. Check diagnostics rather than extending probes to hide a failed runtime.

After startup, configure a binding and verify a complete turn with the Langfuse or Litefuse walkthrough. A successful health probe alone is not an end-to-end acceptance test.

Upgrade and legacy state

Quiesce old writers before a v2-state rollout. After v2 state is written, recover forward with a compatible image; do not roll back to an original v1-only exporter, delete internal topics, rewind offsets, or reuse an old scratch index. For scratch exhaustion, stop the runtime and provision sufficient writable disk/quota before rebuilding from Kafka.

Existing SQL-state installations must explicitly retain OBSERVABILITY_EXPORTER_STATE_BACKEND=postgres and their exporter-owned OBSERVABILITY_EXPORTER_DATABASE_URL until a controlled cutover. Supplying a DSN without selecting a backend fails startup. Kafka mode does not import SQL progress; remove old DSNs from extraEnvFrom as well as direct values/Secret references during a planned cutover. Legacy Postgres does not support raw I/O, and its database must not be the registry database.

Verify trace export

On this page