Running Velaris on Kubernetes with the bundled Helm chart, on PostgreSQL, MySQL or MariaDB — including reusing a database you already have.
Kubernetes is optional. The standard installation is setup-velaris.sh, which runs Velaris as containers on a single host and is unchanged by anything on this page. Use Kubernetes when you already run a cluster and want Velaris scheduled alongside everything else.
The scripts live in K8/, one directory per database engine:
| Directory | Database |
|---|---|
K8/Postgres/ | PostgreSQL — the default |
K8/MySQL/ | MySQL |
K8/MariaDB/ | MariaDB |
# first install: builds images, loads them, installs the chart, migrates, verifies
./K8/Postgres/setup-velaris-k8s.sh --build
# move an existing install forward — migrates first, rolls back if the rollout fails
./K8/Postgres/update-velaris-k8s.sh
# stop without destroying anything; --start brings it back
./K8/Postgres/stop-velaris-k8s.sh
Each script is non-interactive and safe to re-run. setup refuses to touch an existing release and points at update instead.
If you already run Velaris — an earlier install, a restored backup, or a database outside the cluster — point the install at it and the bundled database is not deployed at all:
VELARIS_K8S_EXTERNAL_URL="postgresql+asyncpg://user:pass@host:5432/velaris" \
./K8/Postgres/setup-velaris-k8s.sh
Before anything is written, the target is inspected. An empty database is accepted, a Velaris database is recognised and only the migrations it is missing are applied, and a database holding some other application's tables is refused — pointing an install at the wrong connection string is a plausible typo with unrecoverable consequences.
This is not the way to bring in data from a different product. For that, install Velaris first and use HxDBMigrate, which reads the source system and creates cases from it.
Velaris does not install Kubernetes and does not create a cluster. You bring one — EKS, GKE, AKS, OpenShift, k3s, anything conformant — and Velaris becomes a workload in it. If you do not run Kubernetes, use the standard installer and ignore this page entirely.
Six prerequisites, and the install fails without any one of them:
Pending forever.kubectl and helm v3+ on the machine you run the script from; docker as well, but only if you build images.VELARIS_IMAGE_REGISTRY. The cluster cannot see images built on your laptop.Optional: metrics-server, only if you want the autoscalers to do anything. Without it replicas stay fixed and nothing else breaks.
Check which cluster you are about to install into before you start. The scripts install into whatever kubectl config current-context points at — that, and nothing else, decides which cluster gets it.
For MySQL and MariaDB the service images must be built with the database driver: --build-arg DB_EXTRAS="[mysql]", which setup-velaris-k8s.sh --build does for you.
The chart deliberately ships closed: ingress.enabled is false and nothing is reachable from outside the cluster until you say so. When you enable it, supply a certificate — ingress.tls takes a secret name — and put the platform behind it. Without TLS every token and every case crosses the network in clear text.
Review the security notes in K8/Postgres/README.md before a production deployment. They list, honestly, what the chart does not give you: no securityContext on the workloads, no NetworkPolicy, the database password as a plain environment variable, and a rate limiter that trusts X-Forwarded-For from anything that can reach the service.
Measured on a capped 8 CPU / 16 GB cluster, two service replicas per engine, so the database is the only variable.
| Database | Version | 40 concurrent | 100 concurrent |
|---|---|---|---|
| PostgreSQL | 18.6 | 387 rps | 362 rps |
| MySQL | 9.4 and 8.4 | 350 rps | 305 rps |
| MariaDB | 13.0 and 11.8 | 354 rps | 322 rps |
No failed requests in any run. Killing service pods under load costs nothing on a single node and 0.004% across nodes; losing the database costs roughly 80 seconds and recovers on its own with no data loss. A three-node cluster and an ingress with TLS were both exercised end to end.
On 2026-08-26 the whole path was run again from nothing but the repository — no cluster, no kubectl, helm or kind on the machine — because a verification driven from a patched working copy proves nothing about the files an operator actually gets.
Three problems stopped a clean install outright and are now fixed: the chart could not resolve its dependencies (valkey 4.0.2 is gone from the Bitnami repository), the engine image could not build, and VELARIS_IMAGE_REGISTRY / VELARIS_IMAGE_TAG were used to build and load images but never passed to Helm, so a full install landed in ImagePullBackOff. Also fixed: the worker was the only deployment with no imagePullPolicy, an ingress path that omitted the chart's service: key rendered a backend that resolved to nothing, and /ready returned 200 while reporting the database disconnected — so a pod that could not reach its database stayed Ready and kept taking traffic.
Result: 58 of 58 functional checks green on PostgreSQL 18.6, MySQL 9.4 and MariaDB, on a node capped at 8 CPU / 16 GB. That covers clean installs, an install pointed at an existing external database, and an uninstall followed by a reinstall onto the same volumes — plus TLS ingress, stop and start, adopting an existing schema, refusing another application's database, a deliberately failing migration, and 4-byte UTF-8 (emoji and CJK) written through the API and read back unchanged.
Two defects the re-run found in the engine, both platform-wide rather than Kubernetes-only. The engine reads plain DATABASE_URL; the chart set VELARIS_ENGINE_DATABASE_URL, which nothing in the codebase reads — so it fell back to localhost:5432, was refused, and carried on with an in-memory store while reporting itself ready. And velaris_sdk.protocols could not be imported at all: ten of its re-exports named a class the module did not define, and the engine catches that around its Temporal setup, so it ran with Temporal permanently "unavailable" next to a healthy Temporal server. Both are fixed, and the engine now connects to the database and registers its workflow and activities. On a Docker install, journalctl -u velaris-engine | grep database_connecting shows which database yours is really using.
One trap worth carrying: the MySQL and MariaDB baseline has no column defaults where PostgreSQL does, so a hand-written INSERT that works on PostgreSQL can fail there. Name every column, and never reach for INSERT IGNORE — it turns the error into a warning and writes an empty primary key.