AAnvio
Deployment

Kubernetes

Kubernetes is Anvio's planned Level 4 deployment target — not yet shipped.

4 min read

Not yet shipped

Anvio does not currently ship a Helm chart, Kubernetes manifests, or an Operator. This page describes the planned Level 4 target based on the deployment-levels table and roadmap docs (docs/23-roadmap.md, README.md). Treat everything below as direction, not a working deployment path today.

Where Kubernetes fits

Anvio's deployment model is progressive — you start with nothing (Level 1, filesystem-only, no Docker) and opt into more infrastructure only as you need scale:

LevelStorageAuthEventsBest for
1Filesystem (sessions/ JSONL)Model API key or mock; no platform loginIn-processSolo dev, first run in 5 minutes
2SQLite (state.db + FTS5)+ vendor OAuth (setup-token) + channel connectionsLocal / NATSSmall team + gateway/API
3PostgreSQL + QdrantJWT + OAuthNATS JetStreamMulti-user production
4K8s + managed DBFull RBACDistributedOrganization scale

Level 3 is the current production ceiling and is fully implemented with the Docker Compose stack described in Docker — Postgres, Redis, NATS JetStream, and the api/worker/gateway services. Level 4 (Kubernetes) is the next step up the roadmap, not something already running.

The internal roadmap doc (docs/14-deployment.md) states this plainly:

Phase 1 — Single VM with Docker Compose. Services: postgres, redis, nats, api, worker, gateway. Phase 4 — Kubernetes Helm chart (optional).

And docs/23-roadmap.md lists Kubernetes under Phase 4 — Multi-agent orchestration, K8s — a forward-looking phase, distinct from the "Advanced Agent OS" work that has already shipped (Phases A–J, all marked complete).

What's expected when it ships

Based on the architecture already in place for Level 3 (which K8s would need to preserve, not replace), a future Helm chart would likely need to cover:

  • Deployments for api, worker, and gateway, mirroring the same three Dockerfiles (docker/Dockerfile.api, Dockerfile.worker, Dockerfile.gateway) already used for Docker Compose.
  • StatefulSet or managed external Postgres — Anvio's schema and migrations (pnpm db:migrate) are Postgres-native; a K8s deployment would likely assume a managed database (RDS, Cloud SQL, etc.) rather than running Postgres in-cluster, consistent with the Level 4 "K8s + managed DB" label in the levels table.
  • NATS JetStream, most plausibly via the NATS Helm chart or the NATS Kubernetes Operator, since Anvio already depends on JetStream mode (nats -js -m 8222) at Level 3 and the event bus abstraction (events.provider: nats) doesn't change shape between a single Docker host and a cluster.
  • Secrets for JWT_SECRET, ANVIO_CONNECTION_ENCRYPTION_KEY, ANVIO_CREDENTIALS_PASSPHRASE, and model provider API keys — via native Kubernetes Secret objects rather than plain .env files. ADR 0009 already names "K8s Secret" as a preferred pattern over .env for production runtime OAuth tokens (see Runtime OAuth).
  • Full RBAC, per the levels table — a step beyond the current JWT + OAuth2 auth providers (packages/auth/src/index.ts), which do not yet implement role-based access control.
  • Ingress for the gateway (GATEWAY_PORT 3001) and API (API_PORT 3000), replacing the host-port publishing used in Docker Compose.

None of the above is implemented in the current codebase — there is no charts/, k8s/, or helm/ directory in the repository as of this writing.

Do not attempt to adapt the Docker Compose files directly into raw Kubernetes manifests and call it "supported" — the health-check semantics (depends_on: condition: service_healthy), volume model, and single-host NATS JetStream configuration in docker-compose.yml were designed for one VM, not a multi-node cluster. Treat any DIY K8s manifests as unsupported until an official chart ships.

Gap register status

The post-v1.17 gap register (docs/69-post-v1.17-gap-register.md) tracks a desktop app and several live-credential integrations as outstanding, but does not list Kubernetes as an active near-term work item — it remains a Phase 4 roadmap entry rather than a tracked P15+ candidate. There is no ETA in the source docs.

TODO: No Helm chart, Kustomize base, or K8s manifest exists anywhere in the Anvio repository at this time. If you need Kubernetes today, you are building and maintaining that layer yourself on top of the same three Dockerfiles used by Docker Compose — there is no vendored starting point.

Edit on GitHub

Last updated on

On this page