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.
helm3.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
- 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> kubectl create namespace octryx- 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 cp deployment/helm/values.example.yaml my-values.yamland 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) andimages.api.tagor adigest.helm install octryx deployment/helm/octryx -n octryx -f my-values.yaml- Get the setup code:
kubectl -n octryx logs deploy/octryx-api -c api | grep "setup code". Then openhttps://<host>/chat/setupand continue as in Docker Compose, step 5.
Is it running?
kubectl -n octryx get pods:octryx-api-…isRunning 1/1, and so isoctryx-postgres-0.https://<host>/api/v1/healthreturns{"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>-postgresStatefulSet. Without it, Helm creates a new StatefulSet with a new, empty volume.database.name: the database name in that volume.
Common problems
| Message or sign | Cause and fix |
|---|---|
existingSecret is required, host is required, or no render without images.api.repository | The value is missing in my-values.yaml. |
Pod Pending, PVC Pending | No default StorageClass. Set persistence.storageClass. |
Init container migrate keeps restarting | The database is unreachable, or POSTGRES_PASSWORD/DATABASE_URL in the Secret does not match. Check with kubectl logs … -c migrate. |
| Large uploads break off | The ingress body limit is too small, e.g. nginx proxy-body-size. |
Knowledge reports needs_configuration | Set objectStore.endpoint and objectStore.bucket. The pod needs access to the bucket (IRSA or keys in the Secret). See Knowledge storage. |
