hatchet-api

by Hatchet

Helm chartv0.22.0Verified publisher

A Helm chart for deploying Hatchet API components on Kubernetes.

About this chart

hatchet-api

A Helm chart for deploying the Hatchet API on Kubernetes.

⚠️ Important — this is an internal building block, not a chart you install directly.

This chart deploys the hatchet-api Deployment together with the helper Jobs that bootstrap the database (setup, migration, seed, quickstart and worker-token Jobs).

Long-running migrations

The chart runs schema migrations both as an init container in the setup Job (on install) and as a pre-upgrade hook Job (on upgrade), controlled by migrationJob. Both default to a 15-minute timeout. See the repository README for tuning migrationJob.activeDeadlineSeconds, migrationJob.backoffLimit and the Helm --timeout flag.

Values validation

This chart ships a values.schema.json. Helm validates your supplied values against it on install, upgrade, template and lint, so type errors (e.g. a string where an integer is expected) are caught before anything is applied to the cluster.

Parameters

Images

KeyTypeDefaultDescription
sharedConfig.image.tagstringlatest Hatchet releaseImage tag inherited from a parent chart.
image.repositorystring"ghcr.io/hatchet-dev/hatchet/hatchet-api"API image repository.
image.tagstringlatest Hatchet releaseAPI image tag.
image.pullPolicystring"IfNotPresent"API image pull policy.
postgresImage.repositorystring"postgres"Postgres client image repository (used by helper Jobs).
postgresImage.tagstring"latest"Postgres client image tag.
postgresImage.pullPolicystring"IfNotPresent"Postgres client image pull policy.

Bootstrap Jobs

KeyTypeDefaultDescription
setupJob.enabledbooltrueEnable the setup Job that bootstraps the database and configuration.
setupJob.image.repositorystring"ghcr.io/hatchet-dev/hatchet/hatchet-admin"Setup Job image repository.
setupJob.image.tagstringlatest Hatchet releaseSetup Job image tag.
setupJob.image.pullPolicystring"IfNotPresent"Setup Job image pull policy.
migrationJob.enabledbooltrueEnable database migrations (init container on install, pre-upgrade hook on upgrade).
migrationJob.backoffLimitint1Number of retries before the migration Job is marked failed.
migrationJob.activeDeadlineSecondsint900Hard timeout (seconds) for the migration Job; raise for long-running schema changes.
migrationJob.image.repositorystring"ghcr.io/hatchet-dev/hatchet/hatchet-migrate"Migration Job image repository.
migrationJob.image.tagstringlatest Hatchet releaseMigration Job image tag.
migrationJob.image.pullPolicystring"IfNotPresent"Migration Job image pull policy.
seedJob.enabledbooltrueEnable the Job that seeds the database with default data.
seedJob.image.repositorystring"ghcr.io/hatchet-dev/hatchet/hatchet-admin"Seed Job image repository.
seedJob.image.tagstringlatest Hatchet releaseSeed Job image tag.
seedJob.image.pullPolicystring"IfNotPresent"Seed Job image pull policy.
quickstartJob.enabledbooltrueEnable the Job that generates cookie/encryption secrets via hatchet-admin quickstart.
workerTokenJob.enabledbooltrueEnable the Job that generates a worker API token.
retainFailedHooksbooltrueRetain failed Helm hook Jobs (e.g. the pre-upgrade migration hook) so logs survive for debugging.

Container runtime

KeyTypeDefaultDescription
commandline.commandlist["/hatchet/hatchet-api"]Container entrypoint command.
commandline.argslist[]Container entrypoint arguments.
envobject{}Additional environment variables injected into the Deployment.
deploymentEnvFromlist[{secretRef: {name: hatchet-config}}]envFrom sources wired into the Deployment only.
envFromlist[]envFrom sources wired into both the Deployment and helper Jobs.
filesobject{}Files mounted into the container via a ConfigMap.
extraContainerslist[]Additional sidecar containers.
initContainerslist[]Additional init containers.
extraVolumeslist[]Additional volumes.
extraVolumeMountslist[]Additional volume mounts.
extraConfigMapMountslist[]Additional ConfigMap mounts.
extraManifestslist[]Additional raw Kubernetes manifests to render.

Cloud SQL sidecar

KeyTypeDefaultDescription
cloudSQLSidecar.enabledboolfalseEnable the Google Cloud SQL Auth Proxy sidecar.
cloudSQLSidecar.addressstring""Cloud SQL instance connection address (appended as the final proxy argument).
cloudSQLSidecar.argslist["--private-ip", "--structured-logs", "--port=5432"]Flags passed to the proxy before the address. Override to add flags such as --auto-iam-authn.
cloudSQLSidecar.resourcesobjectsee values.yamlResources for the Cloud SQL sidecar.

Deployment

KeyTypeDefaultDescription
replicaCountint1Number of replicas.
revisionHistoryLimitint3Number of old ReplicaSets to retain.
deployment.annotationsobject{app.kubernetes.io/name: hatchet-api}Deployment annotations.
deployment.labelsobject{}Deployment labels.
deployment.extraPortslist[]Extra container ports.
podAnnotationsobject{}Common annotations for all pods.
priorityClassNamestring""Pod priority class name.
nodeSelectorobject{}Node labels for pod assignment.
tolerationslist[]Tolerations for pod assignment.
affinityobjectunsetAffinity rules for pod assignment.
resources.limits.memorystring1024MiMemory limit for the main container.
resources.requests.cpustring250mCPU request for the main container.
resources.requests.memorystring1024MiMemory request for the main container.
persistence.sizestring5GiSize of the persistent volume.
podDisruptionBudgetobjectunsetPod disruption budget configuration.

Service & Ingress

KeyTypeDefaultDescription
service.typestringClusterIPService type.
service.externalPortint8080Service external port.
service.internalPortint8080Service (container) internal port.
service.annotationsobject{}Service annotations.
service.labelsobject{}Service labels.
service.selectorobject{}Extra service selector labels.
service.extraPortslist[]Extra service ports.
ingress.enabledbooltrueEnable an Ingress resource.
ingress.annotationsobject{}Ingress annotations.
ingress.labelsobject{}Ingress labels.
ingress.hostslist[]Ingress hosts and paths.
ingress.tlslist[]Ingress TLS configuration.
ingress.pathTypestringImplementationSpecificIngress path type.

Service account & security

KeyTypeDefaultDescription
serviceAccount.createbooltrueCreate a service account.
serviceAccount.namestringnullService account name (generated if unset and create is true).
serviceAccount.annotationsobject{}Service account annotations.
securityContext.enabledboolfalseEnable the pod/container security context.
securityContext.allowPrivilegeEscalationboolfalseAllow privilege escalation.
securityContext.runAsUserint1000UID to run the container as.
securityContext.fsGroupint2000Filesystem group.
securityGroupPolicy.enabledboolfalseEnable AWS security groups for pods.
securityGroupPolicy.groupIdslist[]AWS security group IDs.

Health checks

KeyTypeDefaultDescription
health.enabledboolfalseEnable liveness/readiness probes.
health.specobjectunsetProbe specification (set when health.enabled is true).

License

MIT. See LICENSE.

Deploy hatchet-api with OpenTenant

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