hatchet-stack

by Hatchet

Helm chartv0.22.0Verified publisher

A Helm chart for deploying Hatchet on Kubernetes.

About this chart

hatchet-stack

A Helm chart that deploys Hatchet on Kubernetes. This is the main umbrella chart and the recommended starting point for self-hosting Hatchet.

For a horizontally-scaled, high-available deployment, use hatchet-ha instead.

Getting started

To view the docs for setting up this chart, see Kubernetes Quickstart.

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-stack hatchet/hatchet-stack

Uninstalling the chart

helm uninstall my-hatchet-stack

Dependencies

ComponentSubchartAliasCondition
APIhatchet-apiapiapi.enabled
Enginehatchet-apiengineengine.enabled
Frontendhatchet-frontendfrontendfrontend.enabled
PostgreSQLbitnami/postgresqlpostgrespostgres.enabled
RabbitMQbitnami/rabbitmqrabbitmqrabbitmq.enabled

Each Hatchet component accepts the full set of hatchet-api or hatchet-frontend values under its alias key (e.g. api.resources, engine.replicaCount). The postgres and rabbitmq sections accept all values of their respective Bitnami subcharts.

Values flow into the components two ways:

  1. Per-component overrides are passed straight through by Helm — anything under api.*, engine.* or frontend.* overrides the corresponding subchart value.
  2. sharedConfig is rendered by this chart into a hatchet-shared-config Secret (rename via global.sharedConfigSecretName), which every backend component loads via envFrom. 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

KeyTypeDefaultDescription
global.sharedConfigSecretNamestring"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, engine).

KeyTypeDefaultDescription
sharedConfig.enabledbooltrueEnable shared config.
sharedConfig.image.tagstringlatest Hatchet releaseImage tag applied to all Hatchet components (fallback to per-component image.tag).
sharedConfig.serverUrlstring"http://localhost:8080"Public server URL.
sharedConfig.serverAuthCookieDomainstring"localhost:8080"Domain for the auth cookie.
sharedConfig.serverAuthCookieInsecurestring"t"Allow cookies to be set over http.
sharedConfig.serverAuthSetEmailVerifiedstring"t"Automatically set email_verified for all users.
sharedConfig.serverAuthBasicAuthEnabledstring"t"Allow login via basic auth (email/password).
sharedConfig.grpcBroadcastAddressstring"localhost:7070"gRPC server endpoint exposed via the grpc service.
sharedConfig.grpcInsecurestring"t"Allow gRPC to be served over http.
sharedConfig.defaultAdminEmailstring"[email protected]"Default admin email — change in production.
sharedConfig.defaultAdminPasswordstring"Admin123!!"Default admin password — change in production.
sharedConfig.envobject{}Additional environment variables (override defaults).

Components

KeyTypeDefaultDescription
api.enabledbooltrueEnable the API component.
api.replicaCountint2API replicas.
api.image.repositorystring"ghcr.io/hatchet-dev/hatchet/hatchet-api"API image repository.
api.migrationJob.enabledbooltrueRun DB migrations (only enabled on the api component).
engine.enabledbooltrueEnable the engine component (gRPC, controllers, scheduler).
engine.replicaCountint1Engine replicas.
engine.image.repositorystring"ghcr.io/hatchet-dev/hatchet/hatchet-engine"Engine image repository.
frontend.enabledbooltrueEnable the frontend component.
frontend.image.repositorystring"ghcr.io/hatchet-dev/hatchet/hatchet-frontend"Frontend image repository.

See hatchet-api for the full set of values available under api and engine, and hatchet-frontend for frontend.

The envFrom (and deploymentEnvFrom) values on each backend component are rendered through tpl, so you can reference release values inside secret/configmap names — e.g. name: '{{ .Release.Name }}-postgres-secret'.

Bundled PostgreSQL & RabbitMQ

⚠️ The bundled postgres and rabbitmq subcharts are intended for development and staging environments only. They are single-instance, store data on default storage, and are not configured for backups, high availability or monitoring. 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-stack hatchet/hatchet-stack \
  --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/rabbitmq are disabled, the chart no longer renders DATABASE_URL / SERVER_MSGQUEUE_RABBITMQ_URL into the hatchet-shared-config Secret, so you must supply them yourself (via sharedConfig.env as above, or your own Secret referenced through each component's envFrom).

KeyTypeDefaultDescription
postgres.enabledbooltrueDeploy the bundled Bitnami PostgreSQL.
postgres.image.repositorystring"bitnamilegacy/postgresql"PostgreSQL image repository.
postgres.auth.usernamestring"hatchet"PostgreSQL username.
postgres.auth.passwordstring"hatchet"PostgreSQL password.
postgres.auth.databasestring"hatchet"PostgreSQL database name.
postgres.tls.enabledboolfalseEnable PostgreSQL TLS.
postgres.primary.resourcesPresetstring"medium"PostgreSQL resources preset.
postgres.primary.service.ports.postgresqlint5432PostgreSQL service port.
rabbitmq.enabledbooltrueDeploy the bundled Bitnami RabbitMQ.
rabbitmq.image.repositorystring"bitnamilegacy/rabbitmq"RabbitMQ image repository.
rabbitmq.auth.usernamestring"hatchet"RabbitMQ username.
rabbitmq.auth.passwordstring"hatchet"RabbitMQ password.
rabbitmq.service.ports.amqpint5672RabbitMQ AMQP service port.

Both sections accept the full set of values for the upstream Bitnami postgresql and rabbitmq charts.

Caddy (optional)

KeyTypeDefaultDescription
caddy.enabledboolfalseEnable the optional Caddy reverse proxy.
caddy.addressstring"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.typestring"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.repositorystring"caddy"Caddy image repository.
caddy.image.tagstring"2.7.6-alpine"Caddy image tag.
caddy.image.pullPolicystring"IfNotPresent"Caddy image pull policy.

License

MIT. See LICENSE.

Deploy hatchet-stack with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has hatchet-stack 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charthatchet-stack is pinned at v0.22.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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