Skip to Content

Kubernetes Deployment

The official Classifyre Helm chart deploys the API, web UI, database migrations, and CLI scan jobs to any Kubernetes cluster. It is the recommended path for production workloads.

Supports

  • k3s, K3d, kind, EKS, GKE, AKS, and any conformant cluster
  • External PostgreSQL, embedded single-pod PostgreSQL, or CloudNativePG
  • Horizontal autoscaling (HPA) for API and web deployments
  • OCI Helm registry, no helm repo add needed

Prerequisites

  • Kubernetes ≥ 1.26
  • Helm ≥ 3.8
  • An ingress controller (nginx is the default ingress.className)
  • A PostgreSQL 14+ database (or use the embedded option for demos)

Images

Release images and the Helm chart are published to Docker Hub.

ComponentImage
API (NestJS backend)classifyre/api
Web (Next.js frontend)classifyre/web
CLI (Python scan worker)classifyre/cli

Available tags

Every full release publishes the version tag and latest. CI also publishes branch-name tags (main, develop, etc.) for every push.

TagExampleMeaningRecommended for
{major}.{minor}.{patch}{softwareVersion}Exact releaseProduction
latest-Latest stable releaseDemos / quick evals
main-Latest commit on mainCI / development
develop-Latest commit on developCI / staging

All images are multi-arch: linux/amd64 + linux/arm64.

When you install the chart at a specific version and leave image tags empty, the chart defaults every image to its own appVersion automatically, no manual tag management needed.


Helm Chart

The chart is published as an OCI artifact:

oci://registry-1.docker.io/classifyre/classifyre-core

Helm 3.8+ supports OCI natively, so there is no helm repo add step.

Prefer reading first? The chart README on GitHub documents every value, the sizing rules, and the production checklist in one page.

# Inspect available versions
helm show chart oci://registry-1.docker.io/classifyre/classifyre-core

# Pull chart locally to inspect values before installing
helm pull oci://registry-1.docker.io/classifyre/classifyre-core --version 0.9.3 --untar

Quick start

Create a namespace

kubectl create namespace classifyre

Create a values file

ingress:
  enabled: false
 
frontend:
  service:
    type: NodePort
    nodePort: 30100
 
postgres:
  mode: embedded
  embedded:
    password: changeme
 
# Sign-in is always on, and it needs the address people open: here the
# NodePort. See Sign-in below.
iam:
  appUrl: http://localhost:30100

Install the chart

helm install classifyre \
oci://registry-1.docker.io/classifyre/classifyre-core \
--namespace classifyre \
--version 0.9.3 \
-f values-k3s.yaml

Helm uses the chart appVersion as the image tag automatically, no extra --set needed.

Verify rollout

kubectl -n classifyre rollout status deployment/classifyre-api
kubectl -n classifyre rollout status deployment/classifyre-web

Open the UI

Find the node IP and open http://<node-ip>:30100 in your browser.

kubectl get nodes -o wide

The embedded PostgreSQL option uses a single pod with a ReadWriteOnce PVC. It has no replication or automated backups. Use it for local dev and demos only.


Encryption key

Classifyre encrypts connector credentials (API tokens, passwords) at rest using CLASSIFYRE_MASKED_CONFIG_KEY.

By default the chart auto-generates a 32-character key on first install and stores it in a Kubernetes Secret. Subsequent helm upgrade runs look up the existing secret and reuse the same key, so credentials stay readable across upgrades.

Do not delete the secret. If the secret is deleted, the key is lost and all stored connector credentials become permanently unreadable. You must re-enter them.

To supply your own key (useful when migrating from Docker or another cluster):

api:
  maskedConfigEncryption:
    value: "your-exactly-32-character-key-here"
    autoGenerate: false

Or reference an existing Kubernetes Secret:

api:
  maskedConfigEncryption:
    existingSecret: "my-classifyre-secrets"
    secretKey: CLASSIFYRE_MASKED_CONFIG_KEY
    autoGenerate: false

Database migrations

Migrations run automatically as an init container in each API pod on every startup. You never need to run them manually. The init container uses the same image as the API and runs:

npx prisma migrate deploy

This is idempotent, if migrations are already applied, the init container exits immediately and the API starts normally.


Ingress

The chart creates four ingress rules on a single host using the nginx ingress controller:

PathTarget
/Web UI (including /<workspace>/… app routes)
/api/*REST API
/<workspace>/mcpMCP protocol endpoint, scoped to one workspace
/socket.io/*WebSocket

Workspace-scoped paths. Application and MCP URLs carry the workspace slug as their first segment — e.g. https://<your-host>/acme-corp/findings and https://<your-host>/acme-corp/mcp. The MCP rule is deliberately regex-based and does not rewrite the path, so the workspace segment reaches the API, which resolves the tenant from it. A bare /mcp with no workspace is not routed and returns 404.

The default class is nginx. Change it with:

ingress:
  className: traefik   # or any other installed controller

TLS

Add cert-manager annotations to get automatic certificates:

ingress:
  host: classifyre.example.com
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
  tls:
    - secretName: classifyre-tls
      hosts:
        - classifyre.example.com

Sign-in

The chart ships sign-in and access management, under the name iam, and it is always on. It runs an identity server next to Classifyre on the same host, at https://<your-host>/iam. See Access & Sign-in for what people can do once signed in.

Everyone signs in to the web app and the API keeps tenants apart. To let people read some workspaces of the first tenant without signing in, make them public (see Running sign-in → Public workspaces). Tenants, people and groups are managed in the identity server; Classifyre gives them access.

What the chart sets up:

PartWhere
Identity serverDeployment and Service <release>-iam (ClusterIP only), proxied by the web app under iam.path (default /iam)
Its databaseAn iam role and database on the chart’s PostgreSQL (iam.database.mode: shared), or your own (external)
Realm classifyreCreated and kept up to date by a job on every install and upgrade: the web and API clients, short-lived tokens (5 minutes), brute-force protection, audit events, English and German
First tenantiam.bootstrap.tenant (default default) with a group admins
First adminiam.bootstrap.admin.username (default admin), member of admins, with a temporary password, and an operator
ThemeClassifyre’s look for the sign-in pages, the identity console and the account page, as plain files from a ConfigMap (iam.theme); the server image stays the stock one

Read the first admin’s temporary password, which must be changed at first sign-in:

kubectl -n classifyre get secret classifyre-iam \
  -o jsonpath='{.data.bootstrap-admin-password}' | base64 -d

URLs

Sign-in needs to know the address people open: browsers reach the identity server through the web app (its /iam/[...path] proxy), so it always lives under Classifyre itself at <appUrl>/iam, the same way /api does — there is no separate host to configure, and the issuer in tokens is that address. By default it is derived from ingress.host and ingress.tls. Without a host name, set it:

iam:
  appUrl: https://classifyre.example.com # Classifyre itself; sign-in lives at https://classifyre.example.com/iam

Through the web proxy browsers reach the classifyre realm, the theme’s static files and, for operators, that realm’s identity console at <appUrl>/iam/admin/classifyre/console/ (iam.realmConsole, on by default; Classifyre links to it as Identity console). The identity server’s own master realm and its console stay inside the cluster unless you set iam.exposeAdminConsole: true. Reach them with kubectl port-forward svc/classifyre-iam 8080 (/iam keeps its path, so open http://localhost:8080/iam/admin) and its admin user, whose password is under admin-password in the same Secret. See Getting started for the first sign-in.

Sitemap

A sitemap (frontend.sitemap.enabled) lists only the public workspaces of the first tenant: nothing private is published for search engines. There is no iam.enabled, iam.public or api.env.DEMO_MODE any more: a release that still sets one fails with a message, so remove them from your values.

Upgrades and backups

The identity server’s state is its database. Back it up with the rest of PostgreSQL, and always before changing iam.image.tag across a minor version (26.8 → 26.9): those upgrades stop all of its pods and cannot be rolled back without the backup. Patch versions are routine.


Upgrading

# Pull the latest chart information
helm show chart oci://registry-1.docker.io/classifyre/classifyre-core --version 0.9.3

# Upgrade in place, migrations run automatically
helm upgrade classifyre \
oci://registry-1.docker.io/classifyre/classifyre-core \
--namespace classifyre \
--version 0.9.3 \
-f values-prod.yaml

The upgrade is rolling, pods are replaced one at a time. The API and web deployments each have a minAvailable: 1 PodDisruptionBudget so at least one pod stays up during the rollout.


Scaling

Horizontal autoscaling is enabled by default for both the API and web deployments:

api:
  autoscaling:
    enabled: true
    minReplicas: 2
    maxReplicas: 10
    targetCPUUtilizationPercentage: 70
    targetMemoryUtilizationPercentage: 75
 
frontend:
  autoscaling:
    enabled: true
    minReplicas: 2
    maxReplicas: 10
    targetCPUUtilizationPercentage: 70
    targetMemoryUtilizationPercentage: 75

CLI scan jobs are ephemeral Kubernetes Jobs — they scale naturally since each scan spawns its own job and the cluster schedules them as capacity allows. Tune their resources with api.cliJobs.resources.

Default resource requests for CLI jobs: 500m CPU, 1 Gi memory, 6 Gi ephemeral storage.

SQL queries: the query worker

SQL queries — the Query data page, exports, MCP and SQL connections — run on a warm query worker (queryWorker, on by default): the CLI image running query-worker, which has DuckDB and every source’s client loaded and forks one process per query, so a query starts in milliseconds instead of waiting for a pod. A query it has no room for runs as a Job (api.cliJobs.query).

queryWorker:
  enabled: true
  slots: 0                 # 0: as many as the memory limit holds at memoryPerQuery each
  memoryPerQuery: 384Mi
  autoscaling:
    enabled: true          # on CPU; metrics-server needed
    minReplicas: 1
    maxReplicas: 5
  maxActivePerWorkspace: 200
  maxOverflowJobsPerWorkspace: 10
  workspaceSharePercent: 75   # most of one pod's slots one workspace may hold
  jobOnlySourceTypes: [ODBC, CUSTOM]
  networkPolicy:
    clusterCidrs:            # set these: your pod and service networks
      - 10.42.0.0/16
      - 10.43.0.0/16
  • Workspaces share it safely. Each query process sees only its own sources’ credentials and its own temporary directory; the pod runs with a read-only root file system; a query that outgrows maxMemoryPerQuery (or the pod’s memory guard) fails alone.
  • Some sources never run in it. Queries that read an ODBC source (it loads the driver the source names) or a custom source (it runs the notebook’s scan()) always run as a Job of their own, whatever jobOnlySourceTypes lists; list more types there to add them.
  • Network. The worker has its own NetworkPolicy: ingress only from this release’s API, worker and SQL gateway; egress anywhere but link-local addresses (cloud metadata). Set queryWorker.networkPolicy.clusterCidrs to the cluster’s pod and service networks, so a query cannot reach other pods (such as the database) directly; the install notes warn while it is empty.
  • GitOps. With helm template or a tool that renders without cluster access, set queryWorker.token.existingSecret (or value), or each render makes a new token.

SQL connections: the SQL gateway

SQL connections let Power BI, Excel, DBeaver and psql read the tables people may query, over the PostgreSQL protocol. They are served by the SQL gateway (sqlGateway), a second deployment of the API image. It is on by default, and it runs without a public address, but nobody can reach it from outside until you set one: the app shows SQL connections are not configured yet, with a link to the guide, until you do.

sqlGateway:
  enabled: true              # the default; false removes the gateway, and the app says it is switched off
  publicHost: sql.example.com  # the name tools connect to; also on the gateway's certificate
  publicPort: 5432
  service:
    type: LoadBalancer       # or NodePort; or sqlGateway.traefik for Traefik v3

An HTTP Ingress cannot carry the PostgreSQL protocol, and the gateway does its own TLS, so it needs a TCP path of its own. Making the endpoint reachable has the recipe for each: LoadBalancer, NodePort, Traefik, ingress-nginx, any other TCP proxy, a local cluster, and a check that it works. The gateway pod requests 250m CPU and 1 GiB (limit 4 GiB); on a small node lower sqlGateway.resources.requests, or set sqlGateway.enabled: false if you do not need it.


Storage

The chart provisions PVCs depending on configuration:

PVCPurposeDefault sizeAccess mode
uv-cachePython packages and file-format readers shared across CLI job pods10 GiReadWriteOnce
postgres (embedded mode only)PostgreSQL data directory20 GiReadWriteOnce

Run logs are persisted to S3-compatible object storage (when configured) or streamed live, there is no filesystem PVC for runner logs.

The uv-cache PVC uses ReadWriteOnce by default, which works on single-node clusters. On multi-node clusters with concurrent CLI jobs, switch to ReadWriteMany (e.g. with an NFS or EFS-backed storage class):

api:
  cliJobs:
    uvCache:
      storageClassName: nfs-client

File-format readers on clusters without internet access

Readers for some table formats (Avro, Vortex, geospatial files, and the Delta Lake and Iceberg table readers) are downloaded the first time a scan needs one and kept in the uv-cache volume under duckdb-extensions/. Without outbound access, point CLI jobs at an internal mirror of the extension repository:

api:
  cliJobs:
    extraEnv:
      - name: CLASSIFYRE_DUCKDB_EXTENSION_REPOSITORY
        value: https://mirror.internal.example/duckdb-extensions

CLASSIFYRE_DUCKDB_EXTENSION_DIR moves the directory they are kept in. When a reader can’t be downloaded, the run reports it as unavailable for that file, rather than as a file that failed to parse.


Uninstalling

helm uninstall classifyre --namespace classifyre

PVCs are not deleted automatically. To remove them:

kubectl -n classifyre delete pvc --all

Deleting PVCs removes the encryption key secret and all scan logs. Export anything you need first.


Helm Chart Values

KeyTypeDefaultDescription
api.affinityobject{}API scheduling: affinity rules. When empty, default soft anti-affinity is applied.
api.argslist[]Optional API container args override.
api.autoscaling.enabledbooltrueEnable HPA for API deployment.
api.autoscaling.maxReplicasint10Maximum API replicas under HPA.
api.autoscaling.minReplicasint2Minimum API replicas under HPA.
api.autoscaling.targetCPUUtilizationPercentageint70Target average CPU utilization for API HPA.
api.autoscaling.targetMemoryUtilizationPercentageint75Target average memory utilization for API HPA.
api.cliJobs.activeDeadlineSecondsint86400Max runtime per CLI job (seconds). Increase for large data sources.
api.cliJobs.affinityobject{}CLI job scheduling: affinity rules.
api.cliJobs.autoInstallOptionalDepsbooltrueAllow CLI to auto-install optional detector dependencies at runtime. The slim cli image installs detector/source groups on demand into a per-pod venv; concurrent/interrupted syncs are made safe by the file lock + cross-process group accumulation + self-heal in uv_sync.py.
api.cliJobs.automountServiceAccountTokenboolfalseMount service account token into CLI job pods.
api.cliJobs.backoffLimitint2Retry attempts for failed CLI jobs.
api.cliJobs.cleanupPolicystring"always"Cleanup policy for CLI jobs: none, failed, or always.
api.cliJobs.containerSecurityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":false}Container security context for CLI job container.
api.cliJobs.detectorFlushBatchSizeint5Number of detector-processed assets to accumulate before pushing findings to the API.
api.cliJobs.enabledbooltrueEnable Kubernetes-backed CLI jobs.
api.cliJobs.extraEnvlist[]Additional environment variables for CLI jobs (list of EnvVar objects; supports secretKeyRef etc.).
api.cliJobs.extraVolumeMountslist[]Extra volume mounts for CLI job containers.
api.cliJobs.extraVolumeslist[]Extra volumes for CLI job pods.
api.cliJobs.huggingFace.existingKeystring"token"Key inside existingSecret that holds the HF_TOKEN value.
api.cliJobs.huggingFace.existingSecretstring""Name of an existing Kubernetes Secret containing the Hugging Face authentication token (HF_TOKEN). When set, the token is injected into every CLI job pod via a secretKeyRef env var. This authenticates requests to hf.co, which significantly increases download rate limits and avoids the “unauthenticated requests” warning from the huggingface-hub library. When this value is set, the Hugging Face token field in the web UI Settings page becomes read-only and disabled — the instance-level token always takes priority over any user-configured token. Create the Secret manually (or via your preferred tool — SealedSecrets, External Secrets, SOPS, etc.) in the same namespace as the CLI jobs: kubectl create secret generic hf-token \ —from-literal=token=hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx The chart does NOT create or manage this Secret — you must create it yourself. This keeps the token out of Helm state and lets you rotate it independently of Helm releases.
api.cliJobs.image.pullPolicystring"IfNotPresent"CLI job image pull policy.
api.cliJobs.image.repositorystring"classifyre/cli"CLI job image repository.
api.cliJobs.image.tagstring""CLI job image tag. Defaults to the chart appVersion when empty.
api.cliJobs.kubeApiCaCertPathstring"/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"CA bundle the API/worker trusts when calling the in-cluster Kubernetes API to create/delete CLI Jobs. The kube-apiserver serves a cert signed by the cluster CA, which every pod mounts at this path; exposing it via NODE_EXTRA_CA_CERTS makes Node’s TLS trust it (fixes the SELF_SIGNED_CERT_IN_CHAIN error against self-signed clusters like k3d). Set to "" to disable (e.g. if the cluster CA is already in the system store).
api.cliJobs.namespacestring""Namespace used for CLI jobs. Empty means release namespace.
api.cliJobs.nodeSelectorobject{}CLI job scheduling: node selector.
api.cliJobs.outputRestTimeoutSecint120HTTP read timeout (seconds) for CLI→API REST calls (bulk ingest, finalize, status updates). The API processes each batch in a Postgres transaction that can take 30-60 s under load; this must be set higher than the API’s transaction timeout to avoid spurious read-timeout failures.
api.cliJobs.podSecurityContextobject{"fsGroup":10001,"runAsGroup":10001,"runAsNonRoot":true,"runAsUser":10001,"seccompProfile":{"type":"RuntimeDefault"}}Pod security context for CLI job pods.
api.cliJobs.pollIntervalMsint2000Poll interval while waiting for job completion (milliseconds).
api.cliJobs.priorityClassNamestring"batch-low-priority"CLI job priority class. Batch by default: CLI Jobs are the workload that spikes, and this is what tells the kubelet to evict a scan rather than Postgres when the node runs short. Its preemptionPolicy is Never, so a pending Job waits for room instead of displacing a service pod.
api.cliJobs.queryobject{"cpu":"1","maxSpill":"10GiB","memory":"2Gi","priorityClassName":"interactive"}SQL query jobs (docs/prd/DQ-data-query.md). Each query is one short-lived Job.
api.cliJobs.query.cpustring"1"CPU limit of one query Job; DuckDB uses as many threads as whole cores.
api.cliJobs.query.maxSpillstring"10GiB"How much a query may spill to the pod’s disk before it is stopped.
api.cliJobs.query.memorystring"2Gi"Memory of one query Job (request = limit). DuckDB is given 70 % of it and spills the rest of a large sort, join or aggregate to disk.
api.cliJobs.query.priorityClassNamestring"interactive"Priority class of query Jobs (priorityClasses.interactiveName by default).
api.cliJobs.resources.limitsobject{"cpu":"2","ephemeral-storage":"20Gi","memory":"4Gi"}CLI job resource limits. Memory must equal the request above.
api.cliJobs.resources.requestsobject{"cpu":"500m","ephemeral-storage":"6Gi","memory":"4Gi"}CLI job resource requests.
api.cliJobs.serviceAccountNamestring""Service account for CLI jobs. Empty uses API service account.
api.cliJobs.tolerationslist[]CLI job scheduling: tolerations.
api.cliJobs.ttlSecondsAfterFinishedint1800TTL for completed CLI jobs (seconds). Ignored when cleanup policy deletes jobs immediately.
api.cliJobs.uvCache.accessModeslist["ReadWriteOnce"]Access modes for uv cache PVC. ReadWriteOnce works on any standard StorageClass. Use ReadWriteMany only if your cluster has a shared filesystem StorageClass (e.g. EFS, NFS).
api.cliJobs.uvCache.enabledbooltrueEnable shared PVC for uv cache (pip package cache shared across CLI jobs).
api.cliJobs.uvCache.existingClaimstring""Existing PVC name for uv cache. Empty creates a new PVC.
api.cliJobs.uvCache.mountPathstring"/cache/uv"Mount path for uv cache in CLI job container.
api.cliJobs.uvCache.prune.enabledbooltrueEnable a CronJob that keeps the uv cache bounded on a schedule.
api.cliJobs.uvCache.prune.imagestring""Image used by the prune CronJob (defaults to the CLI job image).
api.cliJobs.uvCache.prune.maxMBint8000Hard size cap (MiB). When the cache exceeds this, the job runs uv cache clean (full bust; wheels re-download on next job) instead of the soft uv cache prune. Keep below the PVC size above.
api.cliJobs.uvCache.prune.schedulestring"0 2 * * *"Cron schedule for cache pruning. Default: daily at 02:00. uv cache prune alone only evicts unreferenced entries, so a cache holding many large dependency groups (e.g. ML/LLM extras) grows unbounded. The job hard-clears the cache once it exceeds maxMB (see below).
api.cliJobs.uvCache.prune.ttlSecondsAfterFinishedint3600TTL for completed prune jobs (seconds).
api.cliJobs.uvCache.sizestring"10Gi"Requested size for uv cache PVC. IMPORTANT: ReadWriteOnce (default) only works on single-node clusters or when all CLI jobs are guaranteed to land on the same node. On multi-node clusters with concurrent jobs, set accessModes: [ReadWriteMany] and use a shared StorageClass (EFS, NFS, etc.) to avoid jobs hanging with “Multi-Attach error” when two jobs land on different nodes.
api.cliJobs.uvCache.storageClassNamestring""Storage class for uv cache PVC.
api.cliJobs.waitTimeoutSecondsint87300Max time API waits for job completion (seconds). Should exceed activeDeadlineSeconds.
api.cliJobs.workDirstring"/app/apps/cli"Working directory inside CLI job container.
api.commandlist[]Optional API container command override.
api.containerSecurityContext.allowPrivilegeEscalationboolfalseDisallow privilege escalation in API container.
api.containerSecurityContext.capabilities.droplist["ALL"]Drop all Linux capabilities in API container.
api.containerSecurityContext.readOnlyRootFilesystemboolfalseKeep root filesystem writable. Enable only after mounting emptyDir volumes over every path the app writes to at runtime (e.g. /tmp, log dirs). Hardening step for advanced users.
api.database.connectionTimeoutMsint10000Give up acquiring a connection after this long (ms).
api.database.idleTimeoutMsint10000Close a pooled connection after this much idle time (ms).
api.database.interactivePoolMaxint10Connections reserved for interactive requests in API-capable pods, so a scan cannot occupy every connection needed to render the UI. The remainder of poolMax serves authenticated CLI callbacks and in-process workers. Capped at poolMax - 1 so the background lane always keeps one.
api.database.maxResidentNamespacesint20Max workspace pools kept in memory; least-recently-used pools beyond this are disconnected.
api.database.poolMaxint16Total Postgres connections per workspace, split across the interactive and background pools. Background-only worker pods use the full value as a single pool. Raised from 10 to 16 when the background lane was added, so that the lane is funded on top of the interactive budget rather than carved out of it: at 10 total the UI was left with 4, near the 3 that made overview pages fail with P2028.
api.database.retryAttemptsint3Attempts (including the first) for read-only requests that fail with a transient database error. Set to 1 to disable retrying.
api.database.transactionMaxWaitMsint10000How long a transaction may wait for a free connection (ms). Prisma’s own default is 2000, which a busy pool exceeds routinely.
api.database.transactionTimeoutMsint30000Max duration of a single interactive transaction (ms).
api.embedding.allowRemoteModelsbooltrue
api.embedding.audioboolfalseEmbed audio files as sound when the embedding model can. No effect on a text-only model.
api.embedding.autoBackfillbooltrueReconcile all stored findings and asset chunks into the configured embedding space on API startup. Existing vectors are hash-skipped.
api.embedding.batchSizeint16Rows embedded per inference batch on the worker. Larger batches are faster but hold more tensors in memory at once; keep this modest so a backfill burst cannot spike the worker heap into an OOM.
api.embedding.cacheDirstring"/var/cache/classifyre/transformers"
api.embedding.cacheSizeLimitstring"2Gi"
api.embedding.devicestring"cpu"
api.embedding.dimensionsint384Output dimensions. pgvector HNSW supports vector dimensions up to 2000.
api.embedding.dtypestring"q8"Transformers.js ONNX precision and execution device.
api.embedding.enabledbooltrueEnable semantic embedding generation inside the API process.
api.embedding.external.apiKeyKeystring"api-key"
api.embedding.external.baseUrlstring""Base URL for an OpenAI-compatible embeddings API.
api.embedding.external.existingSecretstring""Existing secret containing the provider API key.
api.embedding.hnsw.efConstructionint64
api.embedding.hnsw.efSearchint100
api.embedding.hnsw.mint16
api.embedding.imagesbooltrueEmbed image files as pictures when the embedding model can. No effect on a text-only model.
api.embedding.localModelPathstring""Optional local Transformers.js model root mounted into the API pod.
api.embedding.maxParallelCallsint2
api.embedding.modelstring"Xenova/all-MiniLM-L6-v2"Hugging Face model id or external provider model id.
api.embedding.normalizebooltrue
api.embedding.poolingstring"mean"
api.embedding.providerstring"transformers-js"Embedding provider: transformers-js or openai-compatible.
api.embedding.retrySecondsint30
api.embedding.revisionstring"751bff37182d3f1213fa05d7196b954e230abad9"Immutable model revision. Change it to create a new embedding space.
api.embedding.workerConcurrencyint1Maximum embedding batches processed concurrently across all API replicas.
api.env.CLI_JOB_REAP_CRONstring"*/5 * * * *"Cron (UTC) for the orphaned CLI Job reaper, which deletes Kubernetes Jobs whose runner already reached a terminal state. Far more frequent than the nightly cleanup on purpose: an orphan is not stale history, it is a pod holding CPU and memory right now, and one that is invisible to MAX_CONCURRENT_RUNNERS because that cap counts runner rows, not pods.
api.env.ENVIRONMENTstring"kubernetes"Execution mode used by API.
api.env.MAX_CONCURRENT_RUNNERSstring"3"Scans running at once across the whole installation (every workspace together); each workspace can set a lower limit of its own in Settings.
api.env.MAX_RUNNERS_PER_SOURCEstring"5"Maximum number of completed/failed runs to keep per source. Older runs are deleted (including their logs) when a new run is triggered and the count exceeds this value. Set to “0” to disable cleanup.
api.env.NAMESPACE_IDLE_AFTER_DAYSstring"7"Days without any scan before a namespace’s background workers are put to sleep (cold mode): its pg-boss instance stops polling, its cron ticks stop contending for global worker slots, and its DB pools are released. Scans define activity — workers wake automatically on the next scan or schedule change. Namespaces with CRON/AUTO schedules of their own never sleep. Code default when unset: 7. Accepts fractions for testing. Set to “0” to disable cold mode.
api.env.NAMESPACE_IDLE_CHECK_MSstring"60000"How often (milliseconds) worker pods re-evaluate namespace idleness and wake sleeping namespaces. Code default when unset: 60000.
api.env.NODE_ENVstring"production"Runtime environment passed to API container.
api.env.PORTstring"8000"API listen port.
api.env.RUNNER_CLEANUP_CRONstring"0 3 * * *"Cron (UTC) for that nightly cleanup. Code default when unset: “0 3 * * *“.
api.env.RUNNER_RETENTION_DAYSstring"14"Days of scan history kept. The nightly cleanup deletes runs older than this along with their logs. Code default when unset: 14.
api.env.TEMP_DIRstring"/tmp"Temporary directory used by API.
api.extraEnvlist[]Extra environment variables for API container.
api.extraEnvFromlist[]Extra envFrom sources for API container.
api.extraVolumeMountslist[]Extra volume mounts for the API container.
api.extraVolumeslist[]Extra volumes for the API pod.
api.image.pullPolicystring"IfNotPresent"API image pull policy.
api.image.repositorystring"classifyre/api"API container image repository.
api.image.tagstring""API container image tag. Defaults to the chart appVersion when empty.
api.internalApiKeyobject{"autoGenerate":true,"existingSecret":"","secretKey":"CLASSIFYRE_INTERNAL_KEY","secretName":"","value":""}The API has no user authentication, so the CLI’s write-back endpoints (bulk asset ingest, runner status, discovered assets, graph edges, embedding chunks) are restricted to callers presenting this key. It is injected into the API and worker pods, forwarded by them into every CLI job’s environment, and stripped from inbound requests by the web proxy so a browser can never present it. It also exempts those CLI callbacks from the read-only guard, which is what lets scheduled scans and the autopilot agents keep working while nobody signed in can write.
api.internalApiKey.autoGeneratebooltrueGenerate a random 48-character key when value is empty. Generated key is persisted via Kubernetes Secret lookup across upgrades.
api.internalApiKey.existingSecretstring""Existing secret name that contains the internal API key. When set, chart will not create or manage this secret.
api.internalApiKey.secretKeystring"CLASSIFYRE_INTERNAL_KEY"Secret key name used for CLASSIFYRE_INTERNAL_KEY.
api.internalApiKey.secretNamestring""Secret name created by this chart when existingSecret is empty.
api.internalApiKey.valuestring""Explicit key value to store in the chart-managed secret.
api.lifecycleobject{"preStop":{"exec":{"command":["/bin/sh","-c","sleep 5"]}}}Lifecycle hooks for the API container. The default preStop delay avoids dropped connections during rolling updates by giving kube-proxy time to drain in-flight requests.
api.livenessProbe.enabledbooltrueEnable API liveness probe.
api.livenessProbe.failureThresholdint6API liveness failure threshold.
api.livenessProbe.initialDelaySecondsint30Delay before starting API liveness checks.
api.livenessProbe.pathstring"/ping"HTTP path for API liveness probe.
api.livenessProbe.periodSecondsint15API liveness check period.
api.livenessProbe.timeoutSecondsint5API liveness check timeout.
api.localFolderslist[]Folders mounted into every CLI job pod for folder-backed sources.
api.maskedConfigEncryption.autoGeneratebooltrueGenerate a random 32-character key when value is empty. Generated key is persisted via Kubernetes Secret lookup across upgrades.
api.maskedConfigEncryption.existingSecretstring""Existing secret name that contains API masked-config encryption key. When set, chart will not create or manage this secret.
api.maskedConfigEncryption.secretKeystring"CLASSIFYRE_MASKED_CONFIG_KEY"Secret key name used for CLASSIFYRE_MASKED_CONFIG_KEY.
api.maskedConfigEncryption.secretNamestring""Secret name created by this chart when existingSecret is empty.
api.maskedConfigEncryption.valuestring""Explicit encryption key value to store in chart-managed secret. Must be exactly 32 chars when using raw string format.
api.maxOldSpaceSizeMbint1536Node caps the old-space heap at ~512 MB by default regardless of the container memory limit, so without this the process hits FATAL ERROR: JavaScript heap out of memory and SIGSEGV-restarts long before it uses the memory the pod was granted. Keep this comfortably below resources.limits.memory: the container also holds native allocations (Prisma, the transformers.js/onnxruntime embedding model, Buffers) that live outside the V8 heap, so heap + native must fit the limit. Rule of thumb: heap ≈ 0.75 × the memory limit (in MB).
api.maxRssMbstring""Total process RSS (MB) above which the six CLI ingestion endpoints shed with 503 and the CLI retries. This is under-pressure’s second threshold, alongside the JS-heap one derived from maxOldSpaceSizeMb. It MUST be set, and set above the heap cap. under-pressure’s own default is a flat 1 GB that ignores the pod’s memory limit, and with a 1536 MB heap the JS heap alone grows past it — RSS never comes back down, the pressure flag latches on, and every scan then fails with “Server is under load” on an API using a third of its limit. That is what a 4Gi API pod measured: VmRSS 1558 MB against the 1024 MB default. LEAVE EMPTY. Empty means “derive it from resources.limits.memory” (0.875 x the limit), which is what you want: the guard then follows the limit automatically instead of being a third number to keep in sync by hand. Set it only to override that derivation. Sizing it near the heap cap instead of near the limit is the failure mode: RSS is heap PLUS native (Prisma, Buffers, the embedding model), so a guard close to the heap fires during healthy operation. The chart fails to render if the heap cap ever lands at or above this value.
api.maxRssMbFallbackint1792Fallback RSS guard (MB) used only when maxRssMb is empty AND the memory limit is absent or not a whole Gi/Mi quantity (e.g. “1.5Gi”). Never leave this at under-pressure’s own 1 GB library default, which ignores the pod limit entirely.
api.migration.containerSecurityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]}}Security context for the migration init container. Override with runAsUser/runAsNonRoot: false if the migration toolchain requires root (e.g. Prisma on Bun).
api.migration.enabledbooltrueRun database migrations as an API init container. When disabled, the API applies pending migrations itself before NestJS startup.
api.migration.scriptstring"node -e \"require('./dist/src/database-migrations.js').applyAllPendingMigrations().catch((error) => { console.error(error); process.exit(1); })\""Migration command/script.
api.namespaceRetentionDaysint7Days a deleted workspace stays recoverable before it is dropped for good. Deleting a workspace only marks it and stops serving it; its schema and all its data survive until this many days later, when a background sweep drops the schema and the registry row. That deletion is irreversible and there is no backup step, so raise this if your recovery process needs longer. Set 0 to keep deleted workspaces forever (the behaviour before this existed), at the cost of their disk.
api.nodeSelectorobject{}API scheduling: node selector.
api.pdb.enabledbooltrueEnable PodDisruptionBudget for API deployment.
api.pdb.minAvailableint1API minimum pods available during disruptions.
api.podAnnotationsobject{}Additional pod annotations for API deployment.
api.podLabelsobject{}Additional pod labels for API deployment.
api.podSecurityContext.fsGroupint10001API fsGroup for mounted volumes.
api.podSecurityContext.runAsGroupint10001API pod group ID.
api.podSecurityContext.runAsNonRootbooltrueRequire API container to run as non-root.
api.podSecurityContext.runAsUserint10001API pod user ID.
api.podSecurityContext.seccompProfile.typestring"RuntimeDefault"API pod seccomp profile type.
api.priorityClassNamestring"service-standard"API pod priority class. Defaults to the chart’s service class so API and worker outrank batch CLI Jobs under node pressure (see priorityClasses).
api.readinessProbe.enabledbooltrueEnable API readiness probe.
api.readinessProbe.failureThresholdint6API readiness failure threshold.
api.readinessProbe.initialDelaySecondsint10Delay before starting API readiness checks.
api.readinessProbe.pathstring"/ping"HTTP path for API readiness probe.
api.readinessProbe.periodSecondsint10API readiness check period.
api.readinessProbe.timeoutSecondsint3API readiness check timeout.
api.replicaCountint2Number of API replicas when autoscaling is disabled.
api.resources.limitsobject{"cpu":"1","memory":"2Gi"}API resource limits. Must leave headroom above maxOldSpaceSizeMb (the JS heap) for native allocations — Prisma, the embedding model, and Buffers all live outside the V8 heap. With a 1536 MB heap, 2Gi leaves ~512 MB for native memory before the kernel OOM-kills the pod.
api.resources.requestsobject{"cpu":"250m","memory":"768Mi"}API resource requests.
api.service.annotationsobject{}Additional API service annotations.
api.service.clusterIPstring""Fixed cluster IP, for a reverse proxy outside the cluster that must reach the API (e.g. its socket.io path) without a public nodePort. Immutable once the Service exists: set it to the current IP, or recreate.
api.service.nodePortstringnilFixed nodePort when type is NodePort or LoadBalancer.
api.service.portint8000API service port.
api.service.typestring"ClusterIP"API service type.
api.startCommandstring"node dist/src/main.js"Default API process command when command/args are not set.
api.startupProbe.enabledbooltrueEnable API startup probe.
api.startupProbe.failureThresholdint30API startup failure threshold.
api.startupProbe.pathstring"/ping"HTTP path for API startup probe.
api.startupProbe.periodSecondsint10API startup check period.
api.startupProbe.timeoutSecondsint3API startup check timeout.
api.strategyobject{}API deployment strategy override.
api.terminationGracePeriodSecondsstringnilAPI pod termination grace period (seconds). Set to null to use Kubernetes default.
api.tolerationslist[]API scheduling: tolerations.
api.topologySpreadConstraintslist[]API topology spread constraints. When empty, a default hostname spread is applied.
api.workingDirstring""Working directory used by default shell command.
commonAnnotationsobject{}Additional annotations added to supported chart resources.
commonLabelsobject{}Additional labels added to all chart resources.
frontend.affinityobject{}Web scheduling: affinity rules. When empty, default soft anti-affinity is applied.
frontend.argslist[]Optional web container args override.
frontend.autoscaling.enabledbooltrueEnable HPA for web deployment.
frontend.autoscaling.maxReplicasint10Maximum web replicas under HPA.
frontend.autoscaling.minReplicasint2Minimum web replicas under HPA.
frontend.autoscaling.targetCPUUtilizationPercentageint70Target average CPU utilization for web HPA.
frontend.autoscaling.targetMemoryUtilizationPercentageint75Target average memory utilization for web HPA.
frontend.commandlist[]Optional web container command override.
frontend.containerSecurityContext.allowPrivilegeEscalationboolfalseDisallow privilege escalation in web container.
frontend.containerSecurityContext.capabilities.droplist["ALL"]Drop all Linux capabilities in web container.
frontend.containerSecurityContext.readOnlyRootFilesystemboolfalseKeep root filesystem writable. Enable only after mounting emptyDir volumes over every path the app writes to at runtime. Hardening step for advanced users.
frontend.cookieConsent.enabledboolfalseShow the cookie consent banner in the web app (COOKIE_CONSENT_ENABLED).
frontend.cookieConsent.policyUrlstring"https://www.classifyre.com/privacy/"Policy the banner links to (COOKIE_CONSENT_POLICY_URL). Point this at your own privacy policy when self-hosting.
frontend.enabledbooltrueDeploy the web app in-cluster. Set false to run it externally (e.g. a local next dev pointed at this cluster’s API) instead of building and deploying an image for it.
frontend.env.HOSTNAMEstring"0.0.0.0"Bind address for Next.js standalone server.
frontend.env.NEXT_PUBLIC_API_URLstring"/api"Browser-side API base path.
frontend.env.NODE_ENVstring"production"Runtime environment passed to web container.
frontend.env.PORTstring"3100"Web listen port.
frontend.extraEnvlist[]Extra environment variables for web container.
frontend.extraEnvFromlist[]Extra envFrom sources for web container.
frontend.extraVolumeMountslist[]Extra volume mounts for the web container.
frontend.extraVolumeslist[]Extra volumes for the web pod.
frontend.googleAnalytics.enabledboolfalseEnable Google Analytics (gtag.js) for the web app. When false, no env vars are injected.
frontend.googleAnalytics.measurementIdstring""GA4 measurement ID (G-XXXXXXXXXX), injected as GOOGLE_ANALYTICS_MEASUREMENT_ID. Required when enabled=true.
frontend.image.pullPolicystring"IfNotPresent"Web image pull policy.
frontend.image.repositorystring"classifyre/web"Web container image repository.
frontend.image.tagstring""Web container image tag. Defaults to the chart appVersion when empty.
frontend.lifecycleobject{"preStop":{"exec":{"command":["/bin/sh","-c","sleep 5"]}}}Lifecycle hooks for the web container.
frontend.livenessProbe.enabledbooltrueEnable web liveness probe.
frontend.livenessProbe.failureThresholdint6Web liveness failure threshold.
frontend.livenessProbe.initialDelaySecondsint30Delay before starting web liveness checks.
frontend.livenessProbe.pathstring"/"HTTP path for web liveness probe.
frontend.livenessProbe.periodSecondsint15Web liveness check period.
frontend.livenessProbe.timeoutSecondsint5Web liveness check timeout.
frontend.nodeSelectorobject{}Web scheduling: node selector.
frontend.pdb.enabledbooltrueEnable PodDisruptionBudget for web deployment.
frontend.pdb.minAvailableint1Web minimum pods available during disruptions.
frontend.podAnnotationsobject{}Additional pod annotations for web deployment.
frontend.podLabelsobject{}Additional pod labels for web deployment.
frontend.podSecurityContext.fsGroupint10001Web fsGroup for mounted volumes.
frontend.podSecurityContext.runAsGroupint10001Web pod group ID.
frontend.podSecurityContext.runAsNonRootbooltrueRequire web container to run as non-root.
frontend.podSecurityContext.runAsUserint10001Web pod user ID.
frontend.podSecurityContext.seccompProfile.typestring"RuntimeDefault"Web pod seccomp profile type.
frontend.posthog.enabledboolfalseEnable PostHog analytics. When false, no env vars are injected.
frontend.posthog.hoststring"/classifyre-usr"Client-side ingest host sent to the browser SDK (NEXT_PUBLIC_POSTHOG_HOST). Defaults to /classifyre-usr so requests are proxied through the web container, bypassing ad-blockers. Override with a managed reverse proxy subdomain (e.g. https://e.yourcompany.com) for extra reliability.
frontend.posthog.ingestHoststring"https://us.i.posthog.com"Upstream PostHog ingest endpoint used server-side by the proxy route (POSTHOG_INGEST_HOST). Never exposed to the browser. Use https://eu.i.posthog.com for EU Cloud, or your managed proxy CNAME.
frontend.posthog.tokenstring""PostHog project token (phc_…). Required when enabled=true.
frontend.posthog.uiHoststring"https://us.posthog.com"PostHog UI host for toolbar links etc. (NEXT_PUBLIC_POSTHOG_UI_HOST). Use https://eu.posthog.com for EU Cloud.
frontend.priorityClassNamestring"service-standard"Web pod priority class.
frontend.readinessProbe.enabledbooltrueEnable web readiness probe.
frontend.readinessProbe.failureThresholdint6Web readiness failure threshold.
frontend.readinessProbe.initialDelaySecondsint10Delay before starting web readiness checks.
frontend.readinessProbe.pathstring"/"HTTP path for web readiness probe.
frontend.readinessProbe.periodSecondsint10Web readiness check period.
frontend.readinessProbe.timeoutSecondsint3Web readiness check timeout.
frontend.replicaCountint2Number of web replicas when autoscaling is disabled.
frontend.resources.limitsobject{"cpu":"1","memory":"1Gi"}Web resource limits.
frontend.resources.requestsobject{"cpu":"200m","memory":"384Mi"}Web resource requests.
frontend.service.annotationsobject{}Additional web service annotations.
frontend.service.nodePortstringnilFixed nodePort when type is NodePort or LoadBalancer.
frontend.service.portint3100Web service port.
frontend.service.typestring"ClusterIP"Web service type.
frontend.sitemap.baseUrlstring""Canonical origin for the URLs in the sitemap (SITEMAP_BASE_URL), e.g. https://demo.example.com. Leave empty to derive it from each request’s Host/X-Forwarded-* headers.
frontend.sitemap.chunkSizeint10000URLs per child sitemap (SITEMAP_CHUNK_SIZE), clamped to 100–50000. Lower it if crawlers time out on large workspaces.
frontend.sitemap.enabledboolfalsePublish sitemap.xml and allow crawling (SITEMAP_ENABLED).
frontend.startCommandstring"node /app/apps/web/server.js"Default web process command when command/args are not set.
frontend.startupProbe.enabledbooltrueEnable web startup probe.
frontend.startupProbe.failureThresholdint30Web startup failure threshold.
frontend.startupProbe.pathstring"/"HTTP path for web startup probe.
frontend.startupProbe.periodSecondsint10Web startup check period.
frontend.startupProbe.timeoutSecondsint3Web startup check timeout.
frontend.strategyobject{}Web deployment strategy override.
frontend.terminationGracePeriodSecondsstringnilWeb pod termination grace period (seconds). Set to null to use Kubernetes default.
frontend.tolerationslist[]Web scheduling: tolerations.
frontend.topologySpreadConstraintslist[]Web topology spread constraints. When empty, a default hostname spread is applied.
fullnameOverridestring""Fully override release-based resource names.
iam.accessTokenLifespanSecondsint300Access token lifetime in seconds. Short, because group changes take effect when tokens renew.
iam.affinityobject{}Affinity.
iam.appUrlstring""URL people open Classifyre at, for sign-in redirects, e.g. https://classifyre.example.com. Empty derives it from ingress.host and ingress.tls. The identity server lives under it at <appUrl>/iam.
iam.bootstrap.admin.emailstring""Email of the first tenant admin.
iam.bootstrap.admin.operatorbooltrueAlso make the first tenant admin an operator (realm role classifyre-operator), who manages every tenant on the Platform page (/platform). Given once, when the account is created.
iam.bootstrap.admin.usernamestring"admin"Username of the first tenant admin. Its temporary password is in the <release>-iam Secret, key bootstrap-admin-password, and must be changed at first sign-in.
iam.bootstrap.tenant.aliasstring"default"Alias of the first tenant (organization), created on install. People who have not signed in read its public workspaces (a workspace setting), read-only.
iam.bootstrap.tenant.namestring"Default"Display name of the first tenant.
iam.configJobobject{"resources":{"limits":{"memory":"512Mi"},"requests":{"cpu":"100m","memory":"256Mi"}}}Resources of the realm setup job.
iam.controlDatabasestring"classifyre_control"Database the API works on with sign-in: tenants, grants and the list of workspaces. Each tenant’s workspace data is in a database of its own (classifyre_t_<tenant id>, own login role), made on its first workspace. The database user needs CREATEDB and CREATEROLE, and new databases need the vector extension (superuser, or installed in template1). Without sign-in the API uses postgres.*.database, the open database, which never holds a tenant.
iam.database.external.databasestring"iam"External database name.
iam.database.external.existingSecretstring""Secret holding the external database password.
iam.database.external.existingSecretPasswordKeystring"password"Key of the password in existingSecret.
iam.database.external.hoststring""External database host.
iam.database.external.portint5432External database port.
iam.database.external.usernamestring"iam"External database user.
iam.database.modestring"shared"shared: an iam database and role on the chart’s PostgreSQL (embedded or cnpg). external: your own database, below.
iam.database.namestring"iam"Database name (shared mode).
iam.database.poolMaxSizeint20Most connections the identity server opens (KC_DB_POOL_MAX_SIZE). Counts against PostgreSQL’s max_connections next to the API’s pools.
iam.database.usernamestring"iam"Database role (shared mode).
iam.dynamicHostnameboolfalseDevelopment only: derive the identity server’s public host from each request instead of appUrl, so the app can be opened by LAN IP. Tokens then carry whatever host the browser used; never enable in production.
iam.exposeAdminConsoleboolfalseExpose the identity server’s own admin console and master realm: the web proxy forwards only the classifyre realm and static files unless this is on, which also forwards /iam/admin and /iam/realms/master.
iam.extraEnvlist[]Extra environment variables for the identity server (KC_* options).
iam.image.pullPolicystring"IfNotPresent"Image pull policy.
iam.image.repositorystring"quay.io/keycloak/keycloak"Identity server image repository.
iam.image.tagstring"26.8.1"Identity server image tag. Keep it a quoted string so Dependabot can bump it.
iam.nodeSelectorobject{}Node selector.
iam.pathstring"/iam"Path the identity server is served under: the web app proxies it there, the same way it proxies /api. Always on the web app’s own host — there is no separate public URL to configure.
iam.realmstring"classifyre"Realm that holds users, tenants (organizations) and groups.
iam.realmConsolebooltrueForward the identity console of the classifyre realm through the web app, at <appUrl>/iam/admin/<realm>/console/, and give operators (realm role classifyre-operator) the rights running tenants takes there: people, organizations and their groups, identity providers. Realm settings, clients, sign-in flows, user federation and impersonation stay with the identity server’s own admin. Classifyre links to it from the Platform and Tenant access pages. The master realm stays closed unless exposeAdminConsole is on. Off: the console is reached with a port-forward only.
iam.replicasint1Replicas. More than one forms a cluster over the headless service; minor upgrades still stop all of them.
iam.resourcesobject{"limits":{"memory":"1536Mi"},"requests":{"cpu":"250m","memory":"768Mi"}}Resources of the identity server container.
iam.themestring"classifyre"Theme of the sign-in pages, the identity console and the account page. classifyre is the chart’s own (files/iam/theme), mounted from a ConfigMap into the stock image; empty keeps Keycloak’s.
iam.tolerationslist[]Tolerations.
imagePullSecretslist[]Image pull secrets for all workloads.
ingress.annotationsobject{}Shared ingress annotations (nginx-specific rewrite annotations are applied to API ingress automatically).
ingress.classNamestring"nginx"Ingress class name.
ingress.enabledboolfalseEnable ingress resources for web/api/socket routes.
ingress.hoststring""Hostname for all ingress rules. Required when ingress.enabled=true.
ingress.tlslist[]TLS configuration for ingress.
nameOverridestring"classifyre"Override chart name used in resource names.
networkPolicy.enabledboolfalseEnable network policies for API and web pods.
networkPolicy.ingressNamespaceSelectorobject{}Namespace selector allowed to reach API/web when network policy is enabled.
objectStorage.accessKeyIdstring""Inline access key ID. Prefer existingSecret for production.
objectStorage.bucketstring"classifyre-logs"S3 bucket used for runner logs.
objectStorage.enabledboolfalseSet to true to enable S3-compatible object storage.
objectStorage.endpointstring""S3 endpoint URL. Leave empty for AWS S3 (SDK auto-resolves). Required for all other providers.
objectStorage.existingSecretstring""Name of a pre-created Kubernetes Secret with S3 credentials. When set, accessKeyId/secretAccessKey are ignored.
objectStorage.existingSecretAccessKeyIdKeystring"access-key-id"Key inside existingSecret that holds the access key ID.
objectStorage.existingSecretSecretAccessKeyKeystring"secret-access-key"Key inside existingSecret that holds the secret access key.
objectStorage.forcePathStyleboolfalseForce path-style S3 URLs. Required for MinIO, Garage, Backblaze B2, and most non-AWS providers.
objectStorage.logPrefixstring"runner-logs/"S3 object key prefix for runner logs.
objectStorage.regionstring"us-east-1"AWS region. Required for AWS S3; ignored by most self-hosted providers.
objectStorage.secretAccessKeystring""Inline secret access key. Prefer existingSecret for production.
postgres.cnpg.appPasswordstring""Application password for generated CNPG secret.
postgres.cnpg.bootstrapSecretNamestring""Existing CNPG app secret name.
postgres.cnpg.clusterNamestring"classifyre-cnpg"CloudNativePG cluster resource name.
postgres.cnpg.databasestring"classifyre"Database bootstrapped by CNPG.
postgres.cnpg.imageNamestring"ghcr.io/cloudnative-pg/postgresql:18-standard-trixie"CNPG Postgres image.
postgres.cnpg.instancesint3Number of CNPG instances.
postgres.cnpg.postgresql.parametersobject{"autovacuum_naptime":"15s","autovacuum_vacuum_cost_limit":"2000","effective_cache_size":"6GB","idle_in_transaction_session_timeout":"300000","maintenance_work_mem":"256MB","pg_stat_statements.max":"10000","pg_stat_statements.track":"top","random_page_cost":"1.1","shared_buffers":"2GB","work_mem":"16MB"}postgresql.conf parameters merged into the CNPG Cluster’s spec.postgresql.parameters. Tune these for the workload rather than raising CNPG resource limits — shared_buffers/work_mem control how Postgres itself uses the memory already granted to each instance.
postgres.cnpg.postgresql.sharedPreloadLibrarieslist["pg_stat_statements"]Libraries preloaded at postmaster start. Changing this restarts the cluster (CNPG performs a rolling restart).
postgres.cnpg.storage.sizestring"20Gi"CNPG storage size per instance.
postgres.cnpg.storage.storageClassNamestring""CNPG storage class name.
postgres.cnpg.superuserSecretNamestring""Existing CNPG superuser secret name.
postgres.cnpg.userstring"classifyre"Owner user bootstrapped by CNPG.
postgres.connection.sslModestring"disable"sslmode used by API when connecting to PostgreSQL (disable, require, verify-ca, verify-full).
postgres.embedded.affinityobject{}Embedded Postgres scheduling: affinity rules.
postgres.embedded.containerSecurityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]}}Embedded Postgres container security context.
postgres.embedded.databasestring"classifyre"Embedded Postgres database name.
postgres.embedded.existingSecretstring""Existing secret name holding embedded Postgres password.
postgres.embedded.existingSecretPasswordKeystring"password"Secret key name for embedded Postgres password.
postgres.embedded.image.pullPolicystring"IfNotPresent"Embedded Postgres image pull policy.
postgres.embedded.image.repositorystring"pgvector/pgvector"Embedded Postgres image repository.
postgres.embedded.image.tagstring"0.8.7-pg18-bookworm"Embedded Postgres image tag.
postgres.embedded.livenessProbeobject{"enabled":false,"failureThreshold":10,"initialDelaySeconds":10,"periodSeconds":30,"timeoutSeconds":15}Liveness probe for embedded Postgres. Disabled by default: this is a single instance with no failover, so a restart can only lose in-flight work, never repair anything. pg_isready also measures the node’s ability to fork under load, so a busy node (a heavy scan, an embedding batch) reads as a dead database and the kubelet kills it. Readiness already parks traffic on a wedged instance without that risk.
postgres.embedded.nodeSelectorobject{}Embedded Postgres scheduling: node selector.
postgres.embedded.parametersobject{"shared_buffers":"512MB","work_mem":"16MB"}postgresql.conf parameters passed to the server as -c key=value container args. Tune these for the workload rather than raising Postgres resource limits (see postgres.embedded.resources) — shared_buffers/work_mem control how Postgres itself uses the memory already granted to it.
postgres.embedded.passwordstring""Embedded Postgres password (required when existingSecret is empty).
postgres.embedded.persistence.accessModeslist["ReadWriteOnce"]Access modes for embedded Postgres PVC.
postgres.embedded.persistence.enabledbooltrueEnable persistent volume for embedded Postgres data.
postgres.embedded.persistence.existingClaimstring""Existing PVC name for embedded Postgres data.
postgres.embedded.persistence.keepOnUninstallboolfalseKeep the PVC (and its data) when the release is uninstalled, via the helm.sh/resource-policy annotation. The default storage class’s reclaim policy otherwise deletes the underlying volume’s data along with the PVC on helm uninstall.
postgres.embedded.persistence.sizestring"20Gi"Requested size for embedded Postgres PVC.
postgres.embedded.persistence.storageClassNamestring""Storage class for embedded Postgres PVC.
postgres.embedded.podAnnotationsobject{}Additional annotations for embedded Postgres pod.
postgres.embedded.podLabelsobject{}Additional labels for embedded Postgres pod.
postgres.embedded.podSecurityContextobject{"fsGroup":999,"runAsGroup":999,"runAsUser":999,"seccompProfile":{"type":"RuntimeDefault"}}Embedded Postgres pod security context.
postgres.embedded.portint5432Embedded Postgres service and container port.
postgres.embedded.priorityClassNamestring"service-standard"Embedded Postgres pod priority class.
postgres.embedded.readinessProbeobject{"failureThreshold":6,"initialDelaySeconds":5,"periodSeconds":10,"timeoutSeconds":10}Readiness probe for embedded Postgres. Failing readiness only removes the pod from the Service, so the thresholds can be generous: a probe that flaps under load churns every consumer’s connection pool.
postgres.embedded.resources.limitsobject{"cpu":"2","memory":"4Gi"}Embedded Postgres resource limits. Must equal requests (see above).
postgres.embedded.resources.requestsobject{"cpu":"2","memory":"4Gi"}Embedded Postgres resources. Requests deliberately equal limits, which puts the pod in the Guaranteed QoS class. This is the whole point: in cgroup v2 the CPU request is the scheduling weight, and the memory request drives both oom_score_adj and kubelet’s node-pressure eviction order. With the old 100m/256Mi request Postgres carried the same CPU weight as a docling PDF pipeline and, sitting far above its request, ranked as a prime kill candidate — the one process in the cluster that must not be lost had the weakest guarantee in the chart. Guaranteed makes it the last thing the kernel and the kubelet touch. Keep these two blocks identical when tuning; splitting them silently demotes the pod to Burstable.
postgres.embedded.service.annotationsobject{}Additional annotations for embedded Postgres service.
postgres.embedded.shmSizestring"1Gi"Size of the tmpfs mounted at /dev/shm. Parallel query workers allocate their exchange buffers there, and the container runtime default (64Mi) is far too small: a parallel aggregate over a large table fails with could not resize shared memory segment ... No space left on device (SQLSTATE 53100). Counts against the pod’s memory limit, so keep it comfortably below postgres.embedded.resources.limits.memory. Set to "" to fall back to the runtime default.
postgres.embedded.terminationGracePeriodSecondsstringnilEmbedded Postgres pod termination grace period (seconds). Set to null to use Kubernetes default.
postgres.embedded.tolerationslist[]Embedded Postgres scheduling: tolerations.
postgres.embedded.usernamestring"postgres"Embedded Postgres user name.
postgres.external.databasestring"classifyre"External Postgres database name.
postgres.external.existingSecretstring""Existing secret name for external Postgres credentials.
postgres.external.existingSecretPasswordKeystring"password"Secret key name for external Postgres password.
postgres.external.existingSecretUrlKeystring""Optional secret key containing full DATABASE_URL.
postgres.external.hoststring""External Postgres host.
postgres.external.passwordstring""External Postgres password (required when existingSecret is empty).
postgres.external.portint5432External Postgres port.
postgres.external.sslModestring"disable"Deprecated: use postgres.connection.sslMode instead.
postgres.external.usernamestring"classifyre"External Postgres user name.
postgres.modestring"embedded"PostgreSQL mode: external, cnpg, or embedded.
priorityClasses.batchNamestring"batch-low-priority"Priority class name for batch workloads.
priorityClasses.batchValueint1000Numeric priority value for batch workloads.
priorityClasses.createbooltrueCreate service and batch priority classes. On by default: without them every pod sits at priority 0, so under node pressure the kubelet has no way to prefer Postgres over a batch scan. batch-low-priority also sets preemptionPolicy: Never, so a queued CLI Job can never displace a running service pod — it waits for room instead.
priorityClasses.interactiveNamestring"interactive"Priority class name for interactive CLI Jobs: SQL queries someone is waiting for in the browser. Between service and batch, so a query is scheduled before queued scans; preemptionPolicy Never, so it never evicts a running scan to get its place.
priorityClasses.interactiveValueint5000Numeric priority value for interactive CLI Jobs.
priorityClasses.serviceNamestring"service-standard"Priority class name for service workloads.
priorityClasses.serviceValueint10000Numeric priority value for service workloads.
queryWorker.affinityobject{}Affinity rules.
queryWorker.autoscaling.enabledbooltrueScale worker pods on CPU (horizontal scaling; metrics-server needed). New pods get new queries at once: each query is its own request.
queryWorker.autoscaling.extraMetricslist[]Extra HPA metrics, e.g. a Pods metric on classifyre_query_worker_active (from /metrics) through a Prometheus adapter, to scale on running queries rather than CPU alone.
queryWorker.autoscaling.maxReplicasint5Most worker pods.
queryWorker.autoscaling.minReplicasint1Fewest worker pods.
queryWorker.autoscaling.scaleDownStabilizationSecondsint300Seconds of lower load before scaling down (drains running queries).
queryWorker.autoscaling.targetCPUUtilizationPercentageint70Target average CPU utilization, of the pod’s CPU request.
queryWorker.containerSecurityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true}Container security context. Read-only root filesystem: nothing a query does can change the code later queries (of other workspaces) run. Emptied, the template still sets these.
queryWorker.drainSecondsint960Seconds a stopping pod lets running queries finish before it stops them. The default outlasts the longest query timeout a workspace may set (900 s) plus the worker’s backstop, so a rollout or scale-down stops no query; the pod takes no new query meanwhile.
queryWorker.enabledbooltrueRun SQL queries (the SQL page, exports, MCP, SQL connections) on a warm pool instead of starting a Job per query (docs/prd/DQ-data-query.md §5.3). It is the CLI image (api.cliJobs.image) running query-worker: one process per query, forked from a process that has already imported DuckDB and every source, so a query starts in milliseconds instead of waiting for a pod. Needs api.cliJobs.enabled.
queryWorker.extraEnvlist[]Extra environment for the worker (after api.cliJobs.extraEnv).
queryWorker.jobOnlySourceTypeslist["ODBC","CUSTOM"]Source types whose queries always run as Jobs, never in the shared worker. ODBC (it loads the driver the source names) and CUSTOM (it runs the notebook’s scan()) are always among them, whatever this lists; add more here.
queryWorker.maxActivePerPersonint100Queries one person may have waiting or running at once (the SQL page, exports, MCP and SQL connections together: a BI tool’s pool counts). A guard against a runaway client, not a capacity limit: slots, replicas and overflow Jobs are. With the worker off the API keeps its default of 20.
queryWorker.maxActivePerWorkspaceint200Queries one workspace may have waiting or running at once, so one workspace cannot take every slot of a pool other workspaces share.
queryWorker.maxMemoryPerQuerystring"1536Mi"Most memory one query process may use before the worker stops it (the query fails as “out of memory”, nothing else does): DuckDB’s share plus an export at its 256 MB limit. Empty: no cap per query.
queryWorker.maxOverflowJobsPerWorkspaceint10Overflow Jobs one workspace may have running at once. Past this, a query the pool has no room for fails as “busy” instead of starting another pod.
queryWorker.memoryGuardPercentint90When the pod’s memory use passes this share of its limit, the worker stops its largest query. Without it the kernel would stop every query in the pod (Kubernetes sets memory.oom.group on cgroup v2). 0: off.
queryWorker.memoryPerQuerystring"384Mi"Memory planned per running query when slots is 0: Python and Arrow in the query process plus DuckDB’s share. Larger sorts and joins spill to /tmp.
queryWorker.networkPolicy.clusterCidrslist[]Set this (the install notes warn while it is empty): the cluster’s pod and service networks (e.g. k3s 10.42.0.0/16, 10.43.0.0/16; on EKS or GKE the VPC’s or the cluster’s ranges). Taken out of the “anywhere” rule, so on a CNI that matches pod IPs with ipBlock a query reaches pods only through the rule above (never this release’s database or identity server). The Kubernetes API (its endpoint and the nodes’ addresses, port 6443/10250) and an external database are not pods: list their addresses in deniedEgressCidrs.
queryWorker.networkPolicy.deniedEgressCidrslist["169.254.0.0/16","fe80::/10","fd00:ec2::254/128"]Egress the worker never gets: link-local, where cloud metadata endpoints hand out the node’s credentials.
queryWorker.networkPolicy.enabledbooltrueA NetworkPolicy for the worker pods, on by default (unlike the chart’s networkPolicy): ingress only from this release’s API, worker and SQL gateway pods; egress anywhere but deniedEgressCidrs.
queryWorker.networkPolicy.extraIngresslist[]More ingress rules (NetworkPolicyIngressRule), e.g. from Prometheus to port queryWorker.port for /metrics.
queryWorker.nodeSelectorobject{}Node selector; empty: api.cliJobs.nodeSelector.
queryWorker.overflowstring"job"When every slot of the pod the query reached is taken: job runs the query as a Job (the query-Job settings in api.cliJobs.query), refuse fails it at once with “busy”.
queryWorker.podAnnotationsobject{}Extra pod annotations.
queryWorker.podLabelsobject{}Extra pod labels.
queryWorker.podSecurityContextobject{"fsGroup":10001,"runAsGroup":10001,"runAsNonRoot":true,"runAsUser":10001,"seccompProfile":{"type":"RuntimeDefault"}}Pod security context. Emptied, the template still sets these.
queryWorker.portint8090Port of the worker’s HTTP endpoint (cluster-internal).
queryWorker.priorityClassNamestring"service-standard"Priority class of worker pods (a service, like the API).
queryWorker.replicaCountint1Worker pods when queryWorker.autoscaling is off. The Service spreads queries across them; each pod drains its running queries on a rollout or scale-down.
queryWorker.resourcesobject{"limits":{"cpu":"2","memory":"4Gi"},"requests":{"cpu":"500m","memory":"2Gi"}}Requests and limits of one worker pod. Memory: about 400 MiB for the warmed fork server plus what slots queries use at once.
queryWorker.slotsint0Queries one pod runs at once. 0: as many as its memory limit holds at memoryPerQuery each (up to 256), so a bigger pod runs more (vertical scaling): 32Gi at 256Mi is about 125 at once. DuckDB gets an equal share of the pod’s memory (70 % after a fixed reserve) and its cores.
queryWorker.tmpSizeLimitstring"12Gi"Size limit of the pod’s /tmp, where queries spill large sorts and joins.
queryWorker.token.existingKeystring"token"Key of the token in that Secret.
queryWorker.token.existingSecretstring""Existing Secret with the token the API signs worker requests with. Empty: the chart creates one and keeps it across helm upgrade. With helm template or a GitOps tool that renders without cluster access, set this (or value), or each render makes a new token; the API and the worker read the mounted file again when it changes, so a new one is picked up within the kubelet’s sync period, without restarts.
queryWorker.token.valuestring""Token value when the chart creates the Secret; empty: generated.
queryWorker.tolerationslist[]Tolerations; empty: api.cliJobs.tolerations.
queryWorker.workspaceSharePercentint75The share of one pod’s query slots one workspace may hold at once (%); its queries past that go to another pod or to a Job, so workspaces sharing the pool always find room. 100: no share.
rbac.createbooltrueCreate Role/RoleBinding for API CLI job orchestration.
serviceAccount.annotationsobject{}Extra annotations for the API service account.
serviceAccount.automountbooltrueMount service account token into API pods (required for Kubernetes CLI jobs).
serviceAccount.createbooltrueCreate the API service account.
serviceAccount.namestring""Existing service account name to use when create=false.
sqlGateway.allowedCidrslist[]Client networks allowed to connect (CIDRs, checked in the gateway on the real client address). Empty: any. Also set service.loadBalancerSourceRanges for a LoadBalancer.
sqlGateway.enabledbooltrueSQL connections (docs/prd/DQ-data-query.md §5.7): a PostgreSQL endpoint for BI tools and drivers (psql, DBeaver, Power BI, Excel, Tableau, JDBC, ODBC). Runs the API image with SERVICE_ROLE=sql. People sign in with a SQL connection made in the app; every query runs as a query job and is audited with the connection. On by default; set it to false to run without it (the app then says SQL connections are off). It only becomes reachable once publicHost is set and the port is exposed (service, traefik): until then the app shows a warning that links the setup guide (https://docs.classifyre.com/sql-connections/#making-the-endpoint-reachable).
sqlGateway.idleMinutesint30Minutes a session may sit idle before it is closed.
sqlGateway.maxOldSpaceSizeMbint1024V8 heap cap (MB) of the gateway process. The catalogs live outside the JS heap (WebAssembly), so this stays small.
sqlGateway.maxSessionsint16Sessions one gateway pod holds at once. Each is a PGlite of its own: about 150 MB idle, about 450 MB while a BI tool syncs and queries. Memory bounds it too: a new session is refused as busy (53300) unless the pod’s memory, plus sessionMemoryMb for it and for each session still starting, stays under the RSS guard (87.5 % of resources.limits.memory). At the default 4Gi that is about 6 busy sessions: raise the limit along with this.
sqlGateway.maxSessionsPerConnectionint4Sessions one SQL connection may have open at once.
sqlGateway.portint5432Port the gateway listens on inside the pod and on its Service.
sqlGateway.proxyProtocolboolfalseExpect a PROXY protocol header (v1 or v2) on every connection, so the gateway sees the real client behind a TCP proxy (Traefik, HAProxy, a cloud load balancer) for lockouts and allowedCidrs. Turn on only when every connection comes through such a proxy.
sqlGateway.publicHoststring""The host name people connect to, shown in the app next to each connection, and put in the generated certificate. Set it for SQL connections to work: while it is empty the app warns that the endpoint is not configured instead of showing connection details; e.g. sql.example.com. Changing it later: delete the generated TLS Secret so the certificate is made again with the new name.
sqlGateway.publicPortint5432The port people connect to (the Service’s, a NodePort, or a Traefik entrypoint’s).
sqlGateway.replicaCountint1Gateway replicas. A client session stays on one pod; more replicas spread sessions (each holds an in-memory catalog of ~150 MB).
sqlGateway.resources.limits.memorystring"4Gi"
sqlGateway.resources.requests.cpustring"250m"
sqlGateway.resources.requests.memorystring"1Gi"
sqlGateway.service.annotationsobject{}
sqlGateway.service.externalTrafficPolicystring""Local keeps the client address for allowedCidrs without PROXY protocol.
sqlGateway.service.loadBalancerSourceRangeslist[]For a LoadBalancer: the client networks it accepts.
sqlGateway.service.nodePortstringnilFixed node port for NodePort/LoadBalancer.
sqlGateway.service.typestring"ClusterIP"ClusterIP when a TCP proxy (Traefik) exposes it; LoadBalancer or NodePort to expose it directly — the gateway does its own TLS, so no reverse proxy is needed at all.
sqlGateway.sessionMemoryMbint450What one more session is allowed for when deciding whether the pod has room for it (MB; measured 2026-11-21 with Metabase, BIC M5).
sqlGateway.tls.allowPlaintextboolfalseDevelopment only: accept connections without TLS.
sqlGateway.tls.certManager.enabledboolfalseLet cert-manager issue the certificate for publicHost.
sqlGateway.tls.certManager.issuerRef.kindstring"ClusterIssuer"
sqlGateway.tls.certManager.issuerRef.namestring""
sqlGateway.tls.existingSecretstring""A kubernetes.io/tls Secret (tls.crt, tls.key, optionally ca.crt) for publicHost. Empty: cert-manager below, or a CA and certificate the chart makes once and keeps (its CA is downloadable in the app, so clients can use sslmode=verify-full).
sqlGateway.tls.extraSanslist[]Extra names for the generated certificate (besides publicHost, localhost and the Service’s names).
sqlGateway.traefik.enabledboolfalseExpose through Traefik (v3) as an IngressRouteTCP. Needs a Traefik entrypoint for it (e.g. --entryPoints.postgres.address=:5432).
sqlGateway.traefik.entryPoints[0]string"postgres"
sqlGateway.traefik.tlsstring"none"none: Traefik forwards raw TCP from a dedicated entrypoint (HostSNI(*)) and TLS is negotiated with the gateway, end to end — works with every client. passthrough: route by publicHost (SNI) on a shared entrypoint; Traefik answers PostgreSQL’s SSLRequest and passes the TLS stream through. TLS always ends at the gateway (TLS 1.3).
sqlGateway.trustedProxieslist[]With proxyProtocol: the networks of the proxies themselves (pod or node CIDRs of Traefik, a load balancer). A PROXY header from anywhere else is refused, so a client reaching the pod directly cannot claim another address. Required with proxyProtocol: the gateway does not start without it, and a malformed CIDR also stops it.
telemetry.deployEnvstring"production"Deployment environment tag attached to every span/metric/log.
telemetry.enabledboolfalseEnable OpenTelemetry instrumentation for API, web, and CLI components. Disabled by default. When enabled, traces/metrics/logs are exported via OTLP to telemetry.otlpEndpoint. Opt out (already default): set enabled=false, or set TELEMETRY_DISABLED=1 / DO_NOT_TRACK=1 at runtime.
telemetry.instanceId.configMapKeystring"instance-id"Key inside the ConfigMap that holds the UUID string.
telemetry.instanceId.enabledbooltruePersist a stable anonymous instance UUID in a ConfigMap so it survives upgrades.
telemetry.instanceId.existingConfigMapstring""Use an existing ConfigMap instead of creating one. Must contain instanceId.configMapKey.
telemetry.otlpEndpointstring""OTLP endpoint all components export to (traces, metrics, logs). Required when telemetry.enabled=true. Deploy helm/otel-receiver in your own cluster and point at it, e.g.: otlpEndpoint: “http://otel-receiver-opentelemetry-collector.monitoring:4318”
telemetry.otlpProtocolstring"http/protobuf"OTLP export protocol: “http/protobuf” (default) or “grpc”.
worker.autoscaling.enabledboolfalseEnable the worker HPA. OFF by default, and not a default you should flip without looking at your node pool first. More replicas add throughput safely — pg-boss gives each job to one consumer, and the job-slot semaphore is a Postgres advisory lock shared across replicas. What more replicas do NOT add is capacity: on a single-node cluster a second 3Gi worker competes with the first for the same RAM, and the usual result is eviction rather than throughput. Scale out only when there is somewhere for the pod to go, and soak two replicas manually — a scan for a few minutes — before turning this on.
worker.autoscaling.maxReplicasint3Maximum worker replicas under HPA.
worker.autoscaling.minReplicasint1Minimum worker replicas under HPA.
worker.autoscaling.scaleDownStabilizationSecondsint900Seconds of sustained idleness before a worker is removed. Generous so a pod is not taken away mid-batch, which costs a pg-boss retry.
worker.autoscaling.scaleUpStabilizationSecondsint300Seconds of sustained load before another worker is added.
worker.autoscaling.targetCPUUtilizationPercentageint75Target average CPU utilization. CPU only, on purpose: worker memory tracks resident namespaces rather than queue depth, so scaling on memory adds replicas that raise total memory instead of relieving it.
worker.maxConcurrentNamespaceJobsint4Maximum namespace-scoped background job batches executing concurrently across all worker replicas. All tenant queues remain registered; excess jobs wait on a PostgreSQL advisory-lock slot. Set 0 for unlimited. This is a GLOBAL semaphore spanning every namespace AND every queue, so at 1 a single slow handler stalls the whole instance — scheduler ticks, scan hand-offs and autopilot runs all queue behind it. 4 keeps the rationing that makes the limit worth having while leaving room for control-plane work to get through alongside one long job.
worker.maxOldSpaceSizeMbint2304V8 old-space (JS heap) cap in MB for the WORKER pods, overriding api.maxOldSpaceSizeMb. Leave empty to inherit the API’s value. The worker needs its own number because it has its own memory limit. With the shared 1536 MB cap inside a 3Gi worker the container stopped being OOMKilled and started dying of FATAL ERROR: Reached heap limit (SIGSEGV, exit 139) roughly 40s after boot instead — the cgroup was no longer the binding constraint, the heap cap was, and 1.5 GB of the pod’s 3 GB simply went unused. Same 0.75x rule of thumb as the API: 2304 ≈ 0.75 × 3072.
worker.maxRssMbstring""Total process RSS (MB) for the WORKER pods. Leave empty to derive it from the worker’s OWN resources.limits.memory (0.875 x), which is almost always what you want — the worker holds the forked onnxruntime child on top of everything the API holds, and its limit differs from the API’s.
worker.namespaceJobSlotTimeoutSecondsint900Seconds a job batch may wait for a concurrency slot before it gives up. An unbounded wait is indistinguishable from a hang: the handler never runs, never fails and never reports. On timeout the batch throws, pg-boss retries it later, and the stall becomes visible in the worker queue view instead of silent. Set 0 to wait forever (the previous behaviour).
worker.replicaCountint1Number of worker replicas. The worker runs the same image as the API (SERVICE_ROLE=worker) to process background pg-boss queue jobs and embedding inference outside the HTTP-serving api pods, so heavy background work no longer competes with api pods for their memory limit.
worker.resources.limitsobject{"cpu":"1","memory":"3Gi"}Worker resource limits. The worker holds one Prisma query engine and pg-boss pool per resident namespace plus the forked onnxruntime child, all outside the V8 heap, so api.maxOldSpaceSizeMb (1536) + native exceeded a 2Gi limit and the cgroup OOM-killed the pod before V8 ever felt pressure. 3Gi leaves ~1.5 GB for native allocations.
worker.resources.requestsobject{"cpu":"100m","memory":"512Mi"}Worker resource requests.
Last updated on