Install on Kubernetes
Create the secrets, write your values, install the
codewright-synaxischart and test it.
The codewright-synaxis Helm chart runs the API as a Deployment and the workers as a StatefulSet, one shard per
replica, each with its own mirrors volume. A pre-install and pre-upgrade hook Job migrates the database first, so a
failed migration never touches the running release. The chart is published as a signed OCI artifact beside the image;
the release notes give its address and digest.
Before you start
- Kubernetes 1.29 or later, Helm 3, an ingress controller (or the Gateway API) with TLS.
- A storage class that encrypts its volumes for the workers' mirrors, and a PostgreSQL and Qdrant whose storage is encrypted. The mirror and database volumes hold your organization's proprietary code.
- A managed PostgreSQL (or an operator such as CloudNativePG) and a Qdrant cluster or Qdrant Cloud.
- Your license file and the registry pull credentials that came with it.
To install
Make a namespace and the registry pull secret:
kubectl create namespace synaxis kubectl -n synaxis create secret docker-registry synaxis-registry \ --docker-server=<registry> --docker-username=<user> --docker-password=<password>Create the secrets the chart reads by name (the key names matter):
kubectl -n synaxis create secret generic synaxis-database --from-file=password=./postgres_password kubectl -n synaxis create secret generic synaxis-qdrant --from-file=api-key=./qdrant_api_key kubectl -n synaxis create secret generic synaxis-license --from-file=license.synlic=./license.synlicFor the key-encryption key, either use an Azure Key Vault key with workload identity (as
values-production.yamldoes), or a certificate secret:kubectl -n synaxis create secret generic synaxis-keyring \ --from-file=keyring.pfx=./keyring.pfx --from-file=password=./keyring_passwordPull the chart and unpack it, so you have
values-production.yamlat hand:helm pull oci://<registry>/charts/codewright-synaxis --version <version> --untarWrite your own values file,
my-values.yaml, over the reference deployment (see Values).Install:
helm upgrade --install synaxis ./codewright-synaxis -n synaxis \ -f ./codewright-synaxis/values-production.yaml -f my-values.yaml --atomic --timeout 20mTest the release. The test runs the server image's readiness check against the API service:
helm test synaxis -n synaxisRead the notes Helm prints (the console address and reminders), then continue with First start.
Note: Every value is checked against the chart's schema, so a typo or an unknown value fails the install instead of being ignored. The schema also refuses an
httppublic address, no key-encryption key or both, the bundled databases with the production values, and an external database without its secret.
Values
A my-values.yaml for a certificate-protected key ring, an external database and Qdrant, and an NGINX ingress:
server:
publicUrl: https://synaxis.example.com
imagePullSecrets:
- name: synaxis-registry
license:
existingSecret: synaxis-license
keyRing:
keyVaultKeyId: "" # values-production.yaml sets a Key Vault key; clear it to use a certificate
certificate:
existingSecret: synaxis-keyring
database:
external:
host: synaxis.postgres.example.com
existingSecret: synaxis-database
vectors:
external:
url: https://qdrant.example.com:6333
existingSecret: synaxis-qdrant
embedding:
baseUrl: https://api.openai.com/v1
model: text-embedding-3-small
apiKeyRef: openai # the stored secret holding the key (set it after the first sign-in)
worker:
persistence:
storageClass: encrypted-premium # a storage class that encrypts its volumes
ingress:
className: nginx
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 25m
hosts: [synaxis.example.com]
tls:
- secretName: synaxis-tls
hosts: [synaxis.example.com]
networkPolicy:
egress:
cidrs: [203.0.113.0/24] # your upstreams, identity providers and model endpoints
| Value | Notes |
|---|---|
image.repository, image.tag, image.digest |
The image; a digest wins over the tag. image.repository is required, <registry>/codewright/synaxis (a released chart has it set); point it at your own registry if you mirror the image |
server.publicUrl |
Required: the https address people, CodeWrightAI and webhooks use |
license.existingSecret |
A Secret with license.synlic, installed at start |
keyRing.certificate.existingSecret or keyRing.keyVaultKeyId |
Exactly one is required. A Key Vault key needs workloadIdentity.azure.clientId |
database.external.* |
Host, port, database, user, existingSecret (key password) and sslMode: VerifyFull by default (TLS, checking the certificate's authority and host name); VerifyCA checks the authority only, Require encrypts without checking the certificate, Prefer uses TLS when the server offers it, Disable uses none |
vectors.external.url, .existingSecret |
Qdrant and its API key (key api-key). vectors.collectionPrefix separates installations sharing one Qdrant |
embedding.* |
The embedding endpoint, model, dimensions and the name of the stored secret holding its key |
api.replicas, api.autoscaling.* |
API replicas and the HorizontalPodAutoscaler |
web.replicas, web.autoscaling.* |
Web front end replicas and their autoscaler (the ingress sends every path but the API's to them) |
worker.replicas |
The number of shards. Changing it rebalances repositories across workers |
worker.persistence.size, .storageClass |
Each worker's mirrors volume (100 GiB by default) |
ingress.* or gateway.* |
An Ingress, or a Gateway API HTTPRoute instead. Allow bodies of 25 MB for webhooks |
networkPolicy.* |
On by default: deny all, then allow the ingress namespace, the monitoring namespace, and egress to DNS, the databases and egress.cidrs (or everything with egress.allowAll) |
workloadIdentity.azure.clientId |
Azure workload identity for the Key Vault key and Azure DevOps |
secretsStore.* |
Mount the same secret files from the Secrets Store CSI driver instead |
config.settings |
Any Synaxis setting, as JSON-shaped YAML (single sign-on, limits, retention) |
config.bootstrap, config.applyOnUpgrade |
A configuration-as-code document applied on install (or every upgrade) |
metrics.serviceMonitor.enabled, alerts.enabled, metrics.dashboards.enabled |
Prometheus scraping, the alert rules and the Grafana dashboards |
extraEnv, extraVolumes, extraVolumeMounts |
More environment and mounted files for every Synaxis container |
The management port (8081) is never routed by the ingress. Only API pods reach the workers' internal port (8082).
Pods run as a non-root user with a read-only root file system, all capabilities dropped and the RuntimeDefault
seccomp profile.
Evaluation install
For a test cluster, the chart can run a single PostgreSQL pod and the official Qdrant chart. Never use this in
production; values-production.yaml refuses it:
helm upgrade --install synaxis ./codewright-synaxis -n synaxis \
--set server.publicUrl=https://synaxis.test.example.com \
--set postgres.enabled=true --set qdrant.enabled=true --set dev=true