hatchet-ha
by Hatchet
A Helm chart for deploying Hatchet in a high-availability configuration
About this chart
hatchet-ha
A Helm chart that deploys Hatchet in a high-availability configuration on Kubernetes. It runs the backend as separately scalable components so each can be sized and scaled independently.
For a simpler single-node deployment, use hatchet-stack instead.
Getting started
To view the docs for setting up this chart, see Kubernetes High-Availability.
Prerequisites
- Kubernetes 1.30+
- Helm 3.8+
Installing the chart
helm repo add hatchet https://hatchet-dev.github.io/hatchet-charts
helm repo update
helm install my-hatchet-ha hatchet/hatchet-ha
Uninstalling the chart
helm uninstall my-hatchet-ha
Dependencies
| Component | Subchart | Alias | Condition |
|---|---|---|---|
| API | hatchet-api | api | api.enabled |
| gRPC engine | hatchet-api | grpc | grpc.enabled |
| Controllers engine | hatchet-api | controllers | controllers.enabled |
| Scheduler engine | hatchet-api | scheduler | scheduler.enabled |
| Frontend | hatchet-frontend | frontend | frontend.enabled |
| PostgreSQL | bitnami/postgresql | postgres | postgres.enabled |
| RabbitMQ | bitnami/rabbitmq | rabbitmq | rabbitmq.enabled |
Each Hatchet component accepts the full set of hatchet-api or hatchet-frontend values under its alias key (e.g. api.resources, grpc.replicaCount). The postgres and rabbitmq sections accept all values of their respective Bitnami subcharts.
Values flow into the components two ways:
- Per-component overrides are passed straight through by Helm — anything under
api.*,grpc.*,controllers.*,scheduler.*orfrontend.*overrides the corresponding subchart value. sharedConfigis rendered by this chart into ahatchet-shared-configSecret (rename viaglobal.sharedConfigSecretName), which every backend component loads viaenvFrom. This is how settings like the server URL, gRPC address and admin credentials reach all components at once.
Values validation
This chart ships a values.schema.json. Helm validates your supplied values against it on install, upgrade, template and lint.
Parameters
Global
| Key | Type | Default | Description |
|---|---|---|---|
global.sharedConfigSecretName | string | "hatchet-shared-config" | Name of the Secret rendered from sharedConfig and loaded by every backend component via envFrom. The value is passed through tpl, so set it to something release-scoped such as '{{ .Release.Name }}-shared-config' to run multiple releases in the same namespace without a name collision. |
Shared config
Inherited by all backend services (api, grpc, controllers, scheduler).
| Key | Type | Default | Description |
|---|---|---|---|
sharedConfig.enabled | bool | true | Enable shared config. |
sharedConfig.image.tag | string | latest Hatchet release | Image tag applied to all Hatchet components (fallback to per-component image.tag). |
sharedConfig.serverUrl | string | "http://localhost:8080" | Public server URL. |
sharedConfig.serverAuthCookieDomain | string | "localhost:8080" | Domain for the auth cookie. |
sharedConfig.serverAuthCookieInsecure | string | "t" | Allow cookies to be set over http. |
sharedConfig.serverAuthSetEmailVerified | string | "t" | Automatically set email_verified for all users. |
sharedConfig.serverAuthBasicAuthEnabled | string | "t" | Allow login via basic auth (email/password). |
sharedConfig.grpcBroadcastAddress | string | "localhost:7070" | gRPC server endpoint exposed via the grpc service. |
sharedConfig.grpcInsecure | string | "t" | Allow gRPC to be served over http. |
sharedConfig.defaultAdminEmail | string | "[email protected]" | Default admin email — change in production. |
sharedConfig.defaultAdminPassword | string | "Admin123!!" | Default admin password — change in production. |
sharedConfig.env | object | {} | Additional environment variables (override defaults). |
Components
| Key | Type | Default | Description |
|---|---|---|---|
api.enabled | bool | true | Enable the API component. |
api.replicaCount | int | 2 | API replicas. |
api.image.repository | string | "ghcr.io/hatchet-dev/hatchet/hatchet-api" | API image repository. |
api.migrationJob.enabled | bool | true | Run DB migrations (only enabled on the api component). |
grpc.enabled | bool | true | Enable the gRPC engine component. |
grpc.replicaCount | int | 1 | gRPC replicas. |
grpc.image.repository | string | "ghcr.io/hatchet-dev/hatchet/hatchet-engine" | Engine image repository. |
controllers.enabled | bool | true | Enable the controllers engine component. |
controllers.replicaCount | int | 1 | Controllers replicas. |
scheduler.enabled | bool | true | Enable the scheduler engine component. |
scheduler.replicaCount | int | 1 | Scheduler replicas. |
frontend.enabled | bool | true | Enable the frontend component. |
frontend.image.repository | string | "ghcr.io/hatchet-dev/hatchet/hatchet-frontend" | Frontend image repository. |
See
hatchet-apifor the full set of values available underapi,grpc,controllersandscheduler, andhatchet-frontendforfrontend.
The
envFrom(anddeploymentEnvFrom) values on each backend component are rendered throughtpl, so you can reference release values inside secret/configmap names — e.g.name: '{{ .Release.Name }}-postgres-secret'.
Bundled PostgreSQL & RabbitMQ
⚠️ The bundled
postgresandrabbitmqsubcharts are intended for development and staging only. They are single-instance, store data on default storage, and are not configured for backups, high availability or monitoring — which defeats the purpose of an HA deployment. For production, run PostgreSQL and RabbitMQ yourself (a managed service, or a self-hosted deployment you own end-to-end), then disable the bundled ones:helm install my-hatchet-ha hatchet/hatchet-ha \ --set postgres.enabled=false \ --set rabbitmq.enabled=false \ --set sharedConfig.env.DATABASE_URL='postgres://user:pass@my-db:5432/hatchet?sslmode=require' \ --set sharedConfig.env.SERVER_MSGQUEUE_RABBITMQ_URL='amqp://user:pass@my-broker:5672/'When
postgres/rabbitmqare disabled, the chart no longer rendersDATABASE_URL/SERVER_MSGQUEUE_RABBITMQ_URLinto thehatchet-shared-configSecret, so you must supply them yourself (viasharedConfig.envas above, or your own Secret referenced through each component'senvFrom).
| Key | Type | Default | Description |
|---|---|---|---|
postgres.enabled | bool | true | Deploy the bundled Bitnami PostgreSQL. |
postgres.image.repository | string | "bitnamilegacy/postgresql" | PostgreSQL image repository. |
postgres.auth.username | string | "hatchet" | PostgreSQL username. |
postgres.auth.password | string | "hatchet" | PostgreSQL password. |
postgres.auth.database | string | "hatchet" | PostgreSQL database name. |
postgres.tls.enabled | bool | false | Enable PostgreSQL TLS. |
postgres.primary.resourcesPreset | string | "medium" | PostgreSQL resources preset. |
postgres.primary.service.ports.postgresql | int | 5432 | PostgreSQL service port. |
rabbitmq.enabled | bool | true | Deploy the bundled Bitnami RabbitMQ. |
rabbitmq.image.repository | string | "bitnamilegacy/rabbitmq" | RabbitMQ image repository. |
rabbitmq.auth.username | string | "hatchet" | RabbitMQ username. |
rabbitmq.auth.password | string | "hatchet" | RabbitMQ password. |
rabbitmq.service.ports.amqp | int | 5672 | RabbitMQ AMQP service port. |
Both sections accept the full set of values for the upstream Bitnami postgresql and rabbitmq charts.
Caddy (optional)
| Key | Type | Default | Description |
|---|---|---|---|
caddy.enabled | bool | false | Enable the optional Caddy reverse proxy. |
caddy.address | string | "http://localhost:8080" | Caddy site address (the top line of the generated Caddyfile block). The default serves only requests with Host: localhost, matching the kubectl port-forward workflow. Set to ":8080" to serve any Host, e.g. when fronting Caddy with an ingress. |
caddy.service.type | string | "LoadBalancer" | Service type for the Caddy reverse proxy. Set to ClusterIP to front Caddy with your own ingress instead of provisioning a cloud load balancer. |
caddy.image.repository | string | "caddy" | Caddy image repository. |
caddy.image.tag | string | "2.7.6-alpine" | Caddy image tag. |
caddy.image.pullPolicy | string | "IfNotPresent" | Caddy image pull policy. |
License
MIT. See LICENSE.
Deploy hatchet-ha with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has hatchet-ha on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charthatchet-ha is pinned at v0.22.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply