hudu-helm-chart

by Hudu

Helm chartv0.3.12App 2.50.2Verified publisher

Helm chart for deploying Hudu to self-hosted Kubernetes clusters

About this chart

Hudu Helm chart

Deploys the full Hudu stack (web, worker, optional bundled Postgres/Redis, migrations, ingress) to a Kubernetes cluster for self-hosting clients.

Minimum required configuration

The Delete retention policy and config.disableSsl: true / config.behindTlsProxy: false examples further below are testing/evaluation shortcuts, not production configuration. Bundled single-replica Postgres/Redis/MinIO and Delete retention policies are fine for a throwaway cluster with no real data; turning off Rails' HTTPS enforcement and the TLS assumptions behind its CSRF checks is only correct when there's genuinely no TLS anywhere in front of the pod. Don't carry those settings into a real deployment — see "High availability" and "App config" below for the production-appropriate equivalents. The rest of this section (minimal install, S3/IRSA, ALB ingress) is ordinary chart configuration, not a shortcut.

The only value the chart refuses to render without is config.domain. Everything else — bundled Postgres/Redis passwords, the four app secrets, storage.type (defaults to pvc) — has a working default or auto-generates on first install (see "Auto-generated secrets" below).

For an actually-routable deployment, also set:

  • ingress.host — if ingress.enabled: true (the default), a blank host renders an Ingress that doesn't route anywhere. Not enforced by the chart, but needed in practice.
  • A storage decision, if you don't want the storage.type: pvc default:
    • storage.type: pvc (default) — nothing else required for a single web replica. The StorageClass must support ReadWriteMany once you run more than one via web.replicaCount > 1 (unenforced — the chart can't verify a StorageClass's capabilities). web.autoscaling.enabled: true requires storage.type: s3 outright and fails to render otherwise — see "Autoscaling" below.
    • storage.type: s3 with storage.s3.useLocalS3: true — spins up a bundled, evaluation-grade MinIO and computes bucket/region/credentials for you. Nothing else in storage.s3.* is needed. Use this if you don't have real S3 credentials or an IRSA role set up yet.
    • storage.type: s3 against real S3 (or another S3-compatible service), i.e. useLocalS3 left false — storage.s3.bucket and storage.s3.region are required, plus at least one of: storage.s3.accessKeyId/secretAccessKey, storage.s3.existingSecret, or an IRSA-annotated ServiceAccount (see "File storage" below for the precedence order if more than one is set). Without any of the three, the chart fails to render rather than installing with no working credentials — set useLocalS3: true above instead if you don't have any of them yet.
  • Whatever your Ingress controller needs beyond the chart's own defaults (e.g. ingress.className: alb plus scheme/target-type annotations for AWS Load Balancer Controller instead of nginx) — cluster-specific, not something this chart requires.

The truly minimal install, relying on the storage.type: pvc default and auto-generated secrets:

helm install my-hudu charts/hudu \
  --set config.domain=hudu.example.com \
  --set ingress.host=hudu.example.com

The minimal S3-backed install when you have no S3 credentials or IRSA role set up yet — bundled MinIO instead:

helm install my-hudu charts/hudu \
  --set config.domain=hudu.example.com \
  --set ingress.host=hudu.example.com \
  --set storage.type=s3 \
  --set storage.s3.useLocalS3=true

For a fully disposable test install (e.g. a throwaway evaluation cluster) where you want the Postgres/Redis/MinIO data volumes to actually clean up on helm uninstall instead of the default Retain behavior (see the persistence.retentionPolicy rows under "Database", "Redis", and "File storage" below), add:

  --set postgresql.persistence.retentionPolicy.whenDeleted=Delete \
  --set redis.persistence.retentionPolicy.whenDeleted=Delete \
  --set minio.persistence.retentionPolicy.whenDeleted=Delete

If your cluster uses the AWS Load Balancer Controller instead of nginx (common on EKS), ingress.className defaults to "" — no class set — which the ALB controller won't adopt. Add:

  --set ingress.className=alb \
  --set ingress.annotations."alb\.ingress\.kubernetes\.io/scheme"=internet-facing \
  --set ingress.annotations."alb\.ingress\.kubernetes\.io/target-type"=ip

scheme: internet-facing provisions a publicly-resolvable ALB (the controller defaults to internal otherwise); target-type: ip routes ALB traffic directly to pod IPs over the VPC CNI rather than through NodePorts. Confirm which IngressClasses your cluster actually has with kubectl get ingressclass before installing — a className that doesn't exist on the cluster silently leaves the Ingress unadopted rather than failing the install.

This is the minimal test we used

Testing only — not production configuration. Confirmed working end to end on an EKS cluster behind the AWS Load Balancer Controller, with no HTTPS listener configured on the test ALB (no ACM certificate, no ingress.tls.enabled) — a disposable evaluation install with bundled MinIO and PVCs that clean up automatically on uninstall:

helm install hudu charts/hudu \
  --set config.domain=hudu-test.example.com \
  --set ingress.host=hudu-test.example.com \
  --set config.behindTlsProxy=false \
  --set config.disableSsl=true \
  --set storage.type=s3 \
  --set storage.s3.useLocalS3=true \
  --set postgresql.persistence.retentionPolicy.whenDeleted=Delete \
  --set redis.persistence.retentionPolicy.whenDeleted=Delete \
  --set minio.persistence.retentionPolicy.whenDeleted=Delete \
  --set ingress.className=alb \
  --set ingress.annotations."alb\.ingress\.kubernetes\.io/scheme"=internet-facing \
  --set ingress.annotations."alb\.ingress\.kubernetes\.io/target-type"=ip

config.behindTlsProxy=false and config.disableSsl=true are only correct because this test cluster has no TLS anywhere in front of the pod — both default the other way (true/false respectively) for a real deployment with an actual HTTPS-terminating Ingress. Without overriding them here, the app assumes a TLS-terminating proxy is in front of it (config.behindTlsProxy defaults true) and enforces HTTPS (config.disableSsl defaults false, matching Rails' own secure default). With no actual HTTPS listener, that combination causes two separate failures: Rails' force_ssl 307-redirects every request to https://, which goes nowhere; and even with that unblocked, the browser's http:// Origin header won't match Rails' internally-computed https:// request.base_url, failing the CSRF check with a silent 422 on every POST (e.g. sign-up, "Validate License" appearing to do nothing). Only disable both this way when there is genuinely no TLS anywhere in front of the pod — see "App config" below for the full explanation.

This is the IRSA test we used

Confirmed working end to end against a real S3 bucket, with no static AWS credentials anywhere in the chart's values or the pods — the ServiceAccount carries an IRSA role-arn annotation instead, and the chart detects that and omits the credential env vars entirely. (The IAM role/OIDC/trust-policy setup on the AWS side isn't shown here — this is the chart-side config only; see "File storage" below for the full detection/precedence rules.)

helm install hudu charts/hudu \
  --set config.domain=hudu-test.example.com \
  --set ingress.host=hudu-test.example.com \
  --set config.behindTlsProxy=false \
  --set config.disableSsl=true \
  --set storage.type=s3 \
  --set storage.s3.bucket=my-hudu-uploads \
  --set storage.s3.region=us-east-1 \
  --set serviceAccount.annotations."eks\.amazonaws\.com/role-arn"=arn:aws:iam::123456789012:role/hudu-irsa-role \
  --set postgresql.persistence.retentionPolicy.whenDeleted=Delete \
  --set redis.persistence.retentionPolicy.whenDeleted=Delete \
  --set ingress.className=alb \
  --set ingress.annotations."alb\.ingress\.kubernetes\.io/scheme"=internet-facing \
  --set ingress.annotations."alb\.ingress\.kubernetes\.io/target-type"=ip

Note there's no storage.s3.accessKeyId/secretAccessKey/existingSecret anywhere in this command — leaving all three blank, with the role-arn annotation present, is exactly what triggers IRSA detection. storage.s3.bucket/ region are still required either way; only the credential requirement changes. Swap role-arn for your own IAM role's ARN and bucket/region for your own bucket — the role's trust policy needs to allow sts:AssumeRoleWithWebIdentity from your cluster's OIDC provider, scoped to system:serviceaccount:<namespace>:<service-account-name> (standard IRSA setup, not specific to this chart). The ServiceAccount name is not necessarily your release name — it's <release-name>-hudu unless the release name already contains "hudu" (in which case it's the release name as-is), or whatever serviceAccount.name is set to if you've overridden it. Confirm the actual name with kubectl get serviceaccount -n <namespace> (or helm template ... | grep -A2 'kind: ServiceAccount') before writing the trust policy — a wrong subject fails IRSA with an opaque AccessDenied at upload time rather than at install time.

See "Quick start" below for a fuller example (explicit secrets, bundled Postgres/Redis), and each linked section for the complete set of options.

Quick start

helm install my-hudu charts/hudu \
  --set config.domain=hudu.example.com \
  --set config.url=hudu.example.com \
  --set secrets.secretKeyBase=$(openssl rand -hex 64) \
  --set secrets.passwordKey=$(openssl rand -hex 16) \
  --set secrets.twoFactorKey=$(openssl rand -hex 16) \
  --set postgresql.auth.password=$(openssl rand -hex 16) \
  --set ingress.host=hudu.example.com

This installs with bundled (single-replica) Postgres and Redis and a ReadWriteMany PVC for file storage — suitable for evaluation or small deployments. See "High availability" below before using this in production.

The four secret values above can be omitted, in which case a pre-install Job generates them for you exactly once and persists them as a real Secret — see "Auto-generated secrets" below for exactly how, including what happens if that Secret is ever deleted.

Requirements

  • Kubernetes 1.24+
  • An Ingress controller (nginx, etc.) if ingress.enabled (default true)
  • cert-manager if you want automatic TLS certs (optional — see Ingress/TLS below)
  • If storage.type: pvc (the default): a StorageClass supporting ReadWriteMany (NFS, EFS, Longhorn, Azure Files, etc.) — required once you're running more than one web pod via web.replicaCount > 1, since local-disk uploads can't be shared across replicas any other way. web.autoscaling.enabled: true requires storage.type: s3 outright (the chart fails to render otherwise) — see "Autoscaling" below.
  • Postgres with the pgvector extension if you want Hudini's AI semantic search. The bundled postgresql uses the pgvector/pgvector image, so this is covered by default; if you point externalDatabase at your own Postgres, install pgvector there too. Without it Hudu migrates and runs normally — semantic search just stays unavailable.

Configuration

General

KeyDefaultDescription
nameOverride""Override the chart name component used in generated resource names
fullnameOverride""Override the full generated resource name prefix entirely

ServiceAccount

KeyDefaultDescription
serviceAccount.createtrueCreate a ServiceAccount for the web/worker/migrate pods. Set false to use one you manage yourself
serviceAccount.name""ServiceAccount name. Defaults to the release fullname when create: true, or to default when create: false
serviceAccount.annotations{}Annotations on the created ServiceAccount — typically cloud workload-identity bindings (eks.amazonaws.com/role-arn, iam.gke.io/gcp-service-account). Merged with commonAnnotations, with these winning on collision. All values must be strings. Setting eks.amazonaws.com/role-arn here, with storage.s3.accessKeyId/secretAccessKey/existingSecret all left blank, automatically enables IRSA for S3 storage — see "File storage" below
serviceAccount.automountServiceAccountTokenfalseWhether to project a Kubernetes API token into the pods. Off by default: nothing in the chart calls the Kubernetes API, so the token is pure attack surface. Set true only if you add a sidecar or workload that genuinely needs API access. Unrelated to IRSA — the EKS Pod Identity webhook injects its own separate AWS STS token/env vars based on the role-arn annotation, independent of this setting

Pod metadata, image pulls, and cluster-wide labelling

These apply to every pod the chart renders (podAnnotations, podLabels, imagePullSecrets) or to every resource it renders (commonLabels, commonAnnotations).

KeyDefaultDescription
podAnnotations{}Annotations added to every pod template (web, worker, migrate) — e.g. prometheus.io/scrape: "true". Rendered alongside the chart's own checksum/config and checksum/secret annotations. All values must be strings
podLabels{}Labels added to every pod template, alongside the chart's selector labels. Selector labels are immutable on an existing Deployment, so this is the supported place for extra pod labels. All values must be strings
imagePullSecrets[]List of `{name:

Deploy hudu-helm-chart with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has hudu-helm-chart 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 charthudu-helm-chart is pinned at v0.3.12 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