For the complete documentation index, see llms.txt. This page is also available as Markdown.

Kubernetes (Helm)

Deploy Syntho on Kubernetes using Helm charts.

What Helm deploys

This deployment typically includes:

  • Frontend (UI)

  • Backend

  • Core API

  • Ray (separate chart)

  • PostgreSQL (metadata, optional if you use an external DB)

  • Redis (optional if you use an external Redis)

Ray sizing and storage (optional)

Ray capacity depends on your data size and throughput goals. If you didn’t get sizing guidance yet, ask Syntho Support.

Also ensure your cluster can provision shared (RWX) storage for Ray workers when the chart enables shared volumes.

If your StorageClass does not support ReadWriteMany, Ray pods can fail to schedule or start.

OpenShift / CRI-O note: some clusters default to low process limits. Ray can hit those limits when scaling.

Offline deployment

Offline Kubernetes deployments follow the same steps below. You just need to stage artifacts on a connected machine first.

  1. Stage Helm charts

    • Download the Helm chart bundles (or clone deployment-tools).

    • Transfer the chart bundles to the offline environment where you run helm upgrade --install.

  2. Stage container images

    Your cluster nodes must be able to fetch images.

    • Recommended: mirror images into an internal registry reachable by the cluster nodes.

    • Alternative: preload images onto every node (works, but is harder to operate).

    After mirroring, update image references in both helm/ray/values.yaml and helm/syntho-ui/values.yaml to point to your internal registry (and keep using a specific version tag).

  3. Registry authentication step changes

    • If you use an internal registry, create the ImagePullSecret for that registry and reference it via imagePullSecrets.

    • If you preload images on nodes, ensure the chart uses an imagePullPolicy that doesn’t force pulls (commonly IfNotPresent).

Upgrades are the same procedure. Repeat the staging step for the new APPLICATION_VERSION.

Deploy

1

Prerequisites

Make sure you meet the prerequisites before deploying.

2

Get the Helm charts

Use the deployment-tools repository:

If you prefer release artifacts, use the deployment-tools releases matching the version that you are deploying:

  • https://github.com/syntho-ai/deployment-tools/releases

Download:

  • ray-helm-chart.tar.gz

  • syntho-ui-helm-chart.tar.gz

3

Create a namespace

kubectl create namespace syntho
4

Create an ImagePullSecret

kubectl create secret docker-registry syntho-cr-secret \
  --namespace syntho \
  --docker-server=<REGISTRY_HOST> \
  --docker-username=<USERNAME> \
  --docker-password=<PASSWORD>

In both charts, reference it:

imagePullSecrets:
  - name: syntho-cr-secret

Ensure that syntho.azurecr.io is added to your firewall allowlist to enable image pulls

5

Deploy Ray

Ray provides distributed execution for heavy jobs.

The repository's helm/ray/chart/ contains the chart, including the KubeRay operator and RayCluster dependencies. helm/ray/crds/ contains the corresponding RayCluster, RayJob, and RayService CustomResourceDefinition manifests for cluster administrators. Use the CRDs supplied with your chart version; CRD installation requires cluster-level permissions.

Minimal settings in your Ray values file (commonly helm/ray/values.yaml):

Use a specific <version-number> for production. Avoid latest unless Syntho tells you to.

SynthoLicense: <license-key>

kuberay-operator:
  imagePullSecrets:
    - name: syntho-cr-secret

ray-operator:
  imagePullSecrets:
    - name: syntho-cr-secret

ray-cluster:
  imagePullSecrets:
    - name: syntho-cr-secret
  image:
    tag: <version-number>

Deploy:

helm upgrade --install ray-cluster ./helm/ray/chart \
  --values helm/ray/values.yaml \
  --namespace syntho

If your bundle uses a different values filename or path, use that path in --values.

The Ray head service is typically ray-cluster-ray-head. Use it as ray_address in the Syntho chart.

Ray troubleshooting (ArgoCD, permissions)

If Ray pods fail due to volume permissions, set a permissive security context:

6

Deploy Syntho

Copy helm/syntho-ui/values.yaml to your own values file and configure it for your deployment. Keep that file separately and pass its path to Helm with --values.

To connect to Databricks, also configure workload identity federation in both charts. See Databricks.

The commands below use helm/syntho-ui/values.yaml; substitute your own file's path.

Production recommendation: use a hosted / managed PostgreSQL.

Set images

Set image repositories and tags to the versions provided by Syntho.

Use a specific <version-number> for production. Avoid latest unless Syntho tells you to.

frontend:
  image:
    repository: synthoregistry.azurecr.io/syntho-core-frontend
    tag: <version-number>

backend:
  image:
    repository: synthoregistry.azurecr.io/syntho-core-backend
    tag: <version-number>

core:
  image:
    repository: synthoregistry.azurecr.io/syntho-core-api
    tag: <version-number>

Set license key

Set the license key in the Syntho chart values:

SynthoLicense: <license-key>

Use the same license key value as in helm/ray/values.yaml.

Configure external PostgreSQL (recommended)

Example values

Create an external PostgreSQL host and two databases (common setup):

  • Backend metadata DB

  • Core API metadata DB

Then configure the Syntho Helm values to use them and disable the embedded databases.

Common values:

Configure Redis

By default, the chart deploys Redis and exposes it as redis-svc.

Redis uses persistent storage and AOF for queues and ongoing job logs. Review Redis persistence and sizing before deployment. Choose the data volume size before the first installation; the default is 1Gi.

If you use an external Redis, update these values:

backend:
  redis:
    host: redis-svc
    port: 6379
    db: 0

core:
  redis:
    host: redis-svc
    port: 6379
    db: 1
Using the chart-managed PostgreSQL/Redis (optional)

Keep the embedded dependencies enabled if you don’t run external services.

Disable embedded PostgreSQL by setting database_enabled: false (as shown above).

Minimal example:

If you keep embedded PostgreSQL enabled, the in-cluster service is typically:

  • Host: database

  • Port: 5432

Frontend URL and Ingress:

frontend_url: <hostname>
frontend_protocol: https # or http

ingress:
  enabled: true
  className: nginx
  hosts:
    - host: <hostname>
      paths:
        - path: /
          pathType: Prefix

The Ingress also routes backend traffic using path-based routing (typically GET /api/*).

You don’t need a separate Ingress for the backend.

Ingress annotations and TLS (nginx + cert-manager example)

Admin user:

backend:
  user:
    username: admin
    email: admin@company.com
    password: <password>

Backend secret key:

backend:
  secret_key: <random-string>

Core API encryption key:

python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
core:
  secret_key: <fernet-key>

Ray address:

ray_address: ray-cluster-ray-head
Use externally managed Kubernetes Secrets (optional)

By default, the chart creates backend-secret and core-secret from your Helm values.

If you want to bring your own Secrets (for example via an external secrets manager), set:

  • backend.manualSecretName: <your-secret-name>

  • core.manualSecretName: <your-secret-name>

Create the Secrets in the same namespace.

Backend Secret must include:

Core Secret must include:

Deploy:

helm upgrade --install syntho-ui ./helm/syntho-ui \
  --values helm/syntho-ui/values.yaml \
  --namespace syntho

If your bundle uses a different values filename or path, use that path in --values.

HTTPS and cookies

If TLS is terminated at a reverse proxy / load balancer / Ingress, Syntho must be configured for https.

If Syntho is configured for http, browsers can reject cookies.

Symptoms include login loops or sessions not sticking.

Fix:

  • Set the frontend protocol to https.

  • Disable secure cookies.

7

Verify deployment

Check pods:

kubectl get pods -n syntho

Open the UI at your frontend_url.

If pods are not Ready, check logs:

kubectl logs -n syntho <pod-name>

If the UI doesn’t resolve, check DNS and the Ingress external address first.

If this does not work, see Troubleshooting.

8

Back up PostgreSQL

Back up PostgreSQL Syntho application databases before first use to validate the process.

Redis persistence and sizing

The chart deploys a single Redis primary (redis.replicaCount: 1), not a high-availability Redis cluster. Redis holds queued tasks and complete ongoing job logs until their final archive is saved in PostgreSQL. Provision memory for all unarchived jobs, including long-running jobs and archive retries, plus queues and other application data.

Redis writes an Append-Only File (AOF) to the redis-data PVC mounted at /data. It uses appendfsync everysec, keeps fsync enabled during rewrites, and reloads persisted data when its pod is replaced using the same volume. The separate redis-claim PVC holds configuration, not job data.

Helm value
Default
Purpose

redis.maxmemory

512mb

Memory budget for Redis data, not total process memory

redis.persistence.size

1Gi

Data PVC request for a new installation

redis.persistence.storageClassName

null

Inherit redis.storageClassName; set explicitly to select a storage class

redis.persistence.appendonly

true

Enable AOF persistence

redis.persistence.appendfsync

everysec

Flush policy: everysec, always, or no

redis.persistence.noAppendfsyncOnRewrite

false

Continue fsync during rewrites

redis.resources.requests

CPU 100m, memory 512Mi

Pod scheduling requests

redis.resources.limits

CPU 1, memory 2Gi

Container limits

redis.startupProbe

Period 10s, timeout 5s, failure threshold 180

Allow up to 30 minutes for initial data loading

redis.readinessProbe

Period 10s, timeout 5s, failure threshold 3

Remove an unready Redis pod from Service endpoints

redis.livenessProbe

Period 30s, timeout 5s, failure threshold 5

Restart an unresponsive Redis after startup

Only redis.replicaCount: 1 is supported; the chart rejects other replica counts. redis.persistence.storageClassName takes precedence over redis.storageClassName, which defaults to "default". Storage-class selection applies to both the data and configuration PVCs. For statically provisioned volumes, set the storage-class values to an empty string and configure redis.pvLabelKey to match the PV's pv-label-key label. Provide suitable volumes for both claims.

The noeviction policy prevents memory pressure from silently evicting queue or log keys. At the memory budget, Redis rejects writes. Leave substantial container memory headroom: AOF rewrites can approach twice the dataset's memory usage, plus process overhead. Keep resource requests at or below limits.

The default 1Gi data PVC is not a workload sizing recommendation. Allow space for the current AOF, rewritten files, concurrent writes, and any RDB snapshots. AOF files can be larger than the in-memory dataset. For example, to request 10Gi on a new installation, add this to your values file:

Select a StorageClass available in your cluster. Pod recovery on another node depends on the provisioner and volume topology; local/node-bound storage cannot simply follow the pod. Startup probes allow up to 30 minutes for Redis to load persisted data by default. For larger datasets or slower storage, adjust redis.startupProbe.failureThreshold and redis.startupProbe.periodSeconds to allow enough recovery time. All Redis probes require an exact PONG response, so a LOADING response is not readiness. The startup probe suppresses readiness and liveness checks until it succeeds. A checksum of the Redis ConfigMap triggers a pod restart when Redis configuration changes, and the init container copies the updated configuration to the configuration PVC. This checksum does not track unrelated chart settings or application Secrets.

For an existing installation, changing redis.persistence.size does not resize its PVC and can cause Helm to reject an immutable StatefulSet change. Follow Resize the Redis data PVC instead. For monitoring, see Redis health and capacity.

If you use external Redis, configure equivalent persistence, noeviction, capacity, and recovery on that service. These Helm values configure only the chart-managed Redis.

Next steps

Last updated

Was this helpful?