Skip to content

Install on Kubernetes with Helm ​

Built A production-like installation: the api, PostgreSQL and the worker in your cluster, behind your ingress with TLS.

You need ​

  • Kubernetes 1.27 or newer with an ingress controller (TLS) and a StorageClass for ReadWriteOnce volumes.
  • helm 3.12 or newer.
  • The api image in a registry the cluster can reach. No image is published in the alpha: build and push it yourself (step 1).
  • A model access, as for Docker Compose.
  • For Knowledge: an S3-compatible bucket.

Steps ​

  1. Build the api image and push it to your registry:
    bash
    docker build --target api -t <registry>/octryx-api:<tag> .
    docker push <registry>/octryx-api:<tag>
  2. kubectl create namespace octryx
  3. Create the Secret. Its values never go into a values file.
    bash
    kubectl -n octryx create secret generic octryx \
      --from-literal=JWT_SECRET="$(openssl rand -hex 32)" \
      --from-literal=ENCRYPTION_KEY="$(openssl rand -hex 32)" \
      --from-literal=POSTGRES_PASSWORD="$(openssl rand -hex 24)"
    # Anthropic or OpenAI-compatible, also:  --from-literal=LLM_API_KEY=<key>
    # Bedrock without IRSA, also:  --from-literal=AWS_ACCESS_KEY_ID=… --from-literal=AWS_SECRET_ACCESS_KEY=…
    # Your own database: DATABASE_URL=postgresql+asyncpg://… instead of POSTGRES_PASSWORD
  4. cp deployment/helm/values.example.yaml my-values.yaml and adjust the commented values: host, ingress class, model access, object store, and the image: images.api.repository (required; the chart refuses to render without it) and images.api.tag or a digest.
  5. helm install octryx deployment/helm/octryx -n octryx -f my-values.yaml
  6. Get the setup code: kubectl -n octryx logs deploy/octryx-api -c api | grep "setup code". Then open https://<host>/chat/setup and continue as in Docker Compose, step 5.

Is it running? ​

  • kubectl -n octryx get pods: octryx-api-… is Running 1/1, and so is octryx-postgres-0.
  • https://<host>/api/v1/health returns {"status":"ok"}.

Upgrading an install from an earlier chart name ​

Resources are named <release>-octryx, or just the release name when it already contains octryx (so octryx-api for the release octryx), and the internal database is called octryx. An install made under an earlier chart name keeps its resources and its database volume only if its values say so:

  • fullnameOverride: the resource prefix the install already uses, for example the name of its existing <prefix>-postgres StatefulSet. Without it, Helm creates a new StatefulSet with a new, empty volume.
  • database.name: the database name in that volume.

Common problems ​

Message or signCause and fix
existingSecret is required, host is required, or no render without images.api.repositoryThe value is missing in my-values.yaml.
Pod Pending, PVC PendingNo default StorageClass. Set persistence.storageClass.
Init container migrate keeps restartingThe database is unreachable, or POSTGRES_PASSWORD/DATABASE_URL in the Secret does not match. Check with kubectl logs … -c migrate.
Large uploads break offThe ingress body limit is too small, e.g. nginx proxy-body-size.
Knowledge reports needs_configurationSet objectStore.endpoint and objectStore.bucket. The pod needs access to the bucket (IRSA or keys in the Secret). See Knowledge storage.

Next ​

Octryx AI v0.0.1-alpha · Apache 2.0 · octryx.ai