automq

by upstreamyard

Helm chartv0.1.5App 1.7.5Apache-2.0Verified publisher

AutoMQ Helm chart for Kubernetes. Kafka-compatible streaming with messages stored in S3 (diskless Kafka) on the open-source AutoMQ edition, with combined or separate KRaft controllers, scalable stateless brokers, SASL authentication by default and Prometheus metrics. Replaces the Bitnami Kafka chart setup for AutoMQ. Community chart by upstreamyard, not an official AutoMQ chart.

About this chart

AutoMQ Helm chart: diskless Kafka on S3 on Kubernetes

Have any questions, feedback or need help (e.g. setup, hardened images, etc.)? Reach out to [email protected]

Helm chart for AutoMQ, the open-source, Kafka-compatible streaming platform that stores messages in S3 or S3-compatible object storage instead of broker disks ("diskless Kafka"). Kafka clients, tools and protocols work unchanged. The chart runs 3 combined KRaft controller + broker nodes by default, or separate controllers with stateless broker-only nodes you can scale in seconds. SASL authentication is on by default with generated passwords, and Prometheus metrics, a ServiceMonitor, PodDisruptionBudgets and helm test are included. It uses AutoMQ's official open-source image (automqinc/automq, AutoMQ 1.7.5, based on Kafka 3.9) and replaces the Bitnami Kafka chart setup that AutoMQ's own guide relies on.

Community chart by upstreamyard, not an official AutoMQ chart. AutoMQ is licensed under Apache-2.0. Apache Kafka and Kafka are trademarks of the Apache Software Foundation.

AI agents and coding assistants: this README is the complete reference for the chart. Required: an S3 bucket (s3.dataBucket) and credentials (s3.accessKey/s3.secretKey, s3.existingSecret, or s3.authType: instance). Clients connect to the bootstrap address from the install notes, with SASL/PLAIN unless auth.enabled=false.

Install

AutoMQ needs an S3 bucket. Create one, then:

helm repo add upstreamyard https://upstreamyard.github.io/helm-charts
helm install automq upstreamyard/automq \
  --set s3.dataBucket=my-automq-bucket \
  --set s3.region=eu-central-1 \
  --set s3.existingSecret=automq-s3        # keys: access-key, secret-key

Or from the OCI registry:

helm install automq oci://ghcr.io/upstreamyard/charts/automq -f values.yaml

The install notes show the bootstrap address, the client properties and the command that prints the generated password. Then check that messages flow:

helm test automq

Verifying the chart

Chart packages are PGP-signed. Import the public key (fingerprint 9B416F989B7E6C65F7F3BFAE7689688B20EC7813) and install with --verify:

curl -s https://upstreamyard.github.io/helm-charts/pgp_keys.asc | gpg --dearmor > upstreamyard.gpg
helm install automq upstreamyard/automq --verify --keyring upstreamyard.gpg -f values.yaml

The OCI copy on GHCR is signed with cosign instead (see the repository README).

What the chart does

  • Controllers: a StatefulSet (<release>-automq-controller-0..2) with a small volume each for the KRaft metadata log. By default they are also brokers.
  • Broker-only nodes: an optional second StatefulSet (<release>-automq-broker-*, node IDs from 1000). Messages and the write-ahead log live in S3, so brokers need no volume.
  • AutoMQ's storage engine is always on. The image's -kafka variant otherwise starts as plain Kafka and fails on the first message (ClassCastException ... ElasticUnifiedLog); the chart sets elasticstream.enable and AutoMQ's self-balancing reporter for you.
  • Security:
    • SASL/PLAIN on all listeners (clients, brokers, controllers), with generated passwords kept across upgrades;
    • non-root (UID 1000), read-only root filesystem, all capabilities dropped, no ServiceAccount token.
  • Self-balancing: AutoMQ moves partitions between brokers by itself, e.g. after scaling.
  • Graceful shutdown: a node hands its partitions to other brokers on SIGTERM. A broker stopped in 4 seconds and was ready again 10 seconds after deletion in our test.
  • Metrics: AutoMQ's built-in Prometheus exporter on port 9090 (broker, controller, S3 stream and JVM metrics); metrics.serviceMonitor.enabled adds a ServiceMonitor.
  • Stable cluster ID: derived from the namespace and release name, so it never changes on upgrades, with helm template or with GitOps tools.

Deployment modes

Three combined nodes (default)

Three nodes that are KRaft controllers and brokers at once. Good for most clusters up to moderate throughput.

s3:
  dataBucket: my-automq-bucket
  region: eu-central-1
  existingSecret: automq-s3
  • Tested in kind: a rolling upgrade from AutoMQ 1.7.3 to 1.7.4 under load (100 messages/s, acks=all) delivered 30,000 of 30,000 messages; the slowest message took 5.5 s. Deleting a node and force-killing another one under load delivered 18,000 of 18,000.
  • The PodDisruptionBudget allows one node down at a time, which keeps the quorum.

Controllers plus scalable brokers

Three controller-only nodes and any number of broker-only nodes. Scale throughput with broker.replicas without touching the quorum.

controller:
  controllerOnly: true
broker:
  replicas: 3
  • Tested in kind: scaling brokers from 3 to 1 took 14 seconds; all 6 partitions moved to the remaining broker and all 3,000 messages stayed readable. Scaling back to 3 reused the node IDs.
  • After permanently removing brokers, their registrations stay as "fenced" (kafka_broker_fenced_count), as in Apache Kafka. Remove them with kafka-cluster.sh unregister --bootstrap-server <bootstrap> --id <node id> (tested).

Single node

For development and tests only: no redundancy for the metadata.

controller:
  replicas: 1

S3 storage

SettingAWS S3S3-compatible (MinIO, Ceph, R2, ...)
s3.dataBucketyour bucketyour bucket
s3.regionbucket regionany value the store accepts, e.g. us-east-1
s3.endpointemptyhttp://minio.storage.svc:9000
s3.pathStylefalseusually true
  • Credentials: s3.existingSecret (keys access-key and secret-key, renamable), s3.accessKey/s3.secretKey (stored in the chart's Secret), or s3.authType: instance. With instance, AutoMQ uses the AWS SDK's default chain: IRSA (annotate the ServiceAccount and set serviceAccount.automountToken: true), EKS Pod Identity or the node's instance profile.
  • Tested with a MinIO-compatible store (pgsty/silo) only. AWS S3, IRSA and other providers were not tested.
  • The write-ahead log is in S3 as well (AutoMQ's S3 WAL). Expect produce latencies of a few hundred milliseconds: 330 ms median and 450 ms p95 in our test.
  • Several clusters can share a bucket: AutoMQ prefixes every object with the cluster ID (.../_kafka_<cluster id>/...).
  • Deleting a cluster leaves its objects in the bucket. Empty the bucket (or the cluster's prefix) yourself when you remove a cluster for good.
  • s3.opsBucket holds AutoMQ's operational uploads (logs, metrics) and defaults to the data bucket. Nothing was written there during our tests, which ran a few minutes each.

Connecting clients

  • Bootstrap address: <name>.<namespace>.svc.cluster.local:9092, where <name> is <release>-automq, or just the release name if it contains "automq". For helm install automq ... in namespace streaming that is automq.streaming.svc.cluster.local:9092. Clients then connect to each broker by its own name, e.g. automq-controller-0.automq-headless.streaming.svc.cluster.local:9092. The install notes print the exact address.

  • Client properties (with auth.enabled=true, the default):

    security.protocol=SASL_PLAINTEXT
    sasl.mechanism=PLAIN
    sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="user1" password="<password>";
    

    The password is in the chart's Secret under user-<name>; the install notes print the command.

  • Users: list them in auth.users. Every user may do everything (no ACLs). auth.interBrokerUser is the internal login between nodes.

  • Only in-cluster access in this version: brokers advertise their in-cluster DNS names, and there is no TLS. Keep the traffic inside the cluster network.

Upgrades and password changes

  • AutoMQ versions: set image.tag (e.g. 1.7.4-kafka) or upgrade the chart. Nodes restart one by one; 1.7.3 to 1.7.4 was tested under load (see above).

  • Changing auth.interBrokerPassword: a normal rolling update stalls, because old and new nodes reject each other's password. Run helm upgrade, then restart all nodes at once:

    kubectl delete pod -l app.kubernetes.io/instance=<release>,app.kubernetes.io/name=automq
    

    In our test the cluster was back after about 2 minutes and helm test passed. Plan this as downtime.

  • Reinstalling under the same name and namespace keeps the cluster ID. With the controller volumes still there (Helm doesn't delete them), all topics and messages came back in our test. Wait until the old pods are gone first; otherwise the StatefulSet may not recreate a pod whose old copy is still terminating (a Kubernetes behaviour).

  • Generated passwords change on reinstall, because helm uninstall deletes the Secret. Use auth.existingSecret when clients must keep their passwords.

Production example

# values-prod.yaml
s3:
  dataBucket: my-automq-bucket
  region: eu-central-1
  authType: instance                 # IRSA
serviceAccount:
  annotations:
    eks.amazonaws.com/role-arn: arn:aws:iam::123456789012:role/automq
  automountToken: true
auth:
  existingSecret: automq-auth        # keys: inter-broker-password, orders-service, billing
  users:
    - name: orders-service
    - name: billing
controller:
  controllerOnly: true
  heapOpts: "-Xms2g -Xmx2g -XX:MetaspaceSize=96m -XX:MaxDirectMemorySize=2g"
  resources:
    requests: { cpu: "1", memory: 6Gi }
    limits: { memory: 6Gi }
  podAntiAffinityPreset: hard
broker:
  replicas: 3
  heapOpts: "-Xms4g -Xmx4g -XX:MetaspaceSize=96m -XX:MaxDirectMemorySize=6g"
  resources:
    requests: { cpu: "4", memory: 14Gi }
    limits: { memory: 14Gi }
  podAntiAffinityPreset: hard
metrics:
  serviceMonitor:
    enabled: true

Your own configuration

  • Server properties: config takes any Kafka or AutoMQ server property, e.g. num.partitions: 6 or log.retention.hours: 72 (tested with num.partitions). They override the chart's settings, so config can also replace the S3 URLs completely (s3.data.buckets, s3.ops.buckets, s3.wal.path). The chart turns them into the image's environment variables (. becomes _, _ becomes __, - becomes ___).
  • Not configurable through config: node IDs, advertised listeners and the SASL logins, which the start script sets per pod.
  • Everything else: extraEnv, extraEnvFrom, extraVolumes and extraVolumeMounts.

Known issues

  • Controller count is fixed after the first install: the chart uses a static KRaft quorum (controller.quorum.voters).
  • No TLS and no external access yet (see Connecting clients).
  • Node failure was not tested, because the test cluster had a single node. Pod deletion and force-killing were tested.
  • The Kafka console consumer without credentials doesn't fail fast against a SASL listener; it retries until its timeout, as with Apache Kafka.

FAQ

Is there an official AutoMQ Helm chart? AutoMQ publishes a Helm chart for its commercial AutoMQ Enterprise edition only (as of October 2026). For the open-source edition, AutoMQ's guide uses the Bitnami Kafka chart with an AutoMQ image. This chart is a dedicated, maintained chart for the open-source edition.

What replaces the Bitnami Kafka chart for AutoMQ? This chart. Bitnami's Kafka images are no longer freely maintained, and the Bitnami route needs global.security.allowInsecureImages plus AutoMQ's -bitnami image.

Is AutoMQ compatible with Kafka clients? AutoMQ 1.7 is based on Apache Kafka 3.9.1 and speaks the Kafka protocol. We tested the Kafka CLI tools (topics, console producer and consumer, producer perf test, metadata quorum, cluster unregister); helm test uses them too. Other clients were not tested here.

Why are there no replicas per partition? Durability comes from S3, so AutoMQ keeps one copy per partition (ReplicationFactor: 1) and moves partitions between brokers instead of copying data.

How do I run AutoMQ highly available on Kubernetes? The default (3 combined nodes) or controller.controllerOnly: true with broker.replicas >= 2. Spread the pods with podAntiAffinityPreset: hard.

How do I monitor AutoMQ with Prometheus? Metrics are on by default (port 9090). Set metrics.serviceMonitor.enabled=true for the Prometheus Operator.

Why is produce latency higher than with Kafka on local disks? The open-source edition writes its write-ahead log to S3, so each acknowledged write waits for S3 (330 ms median in our test).

Values

KeyTypeDefaultDescription
auth.enabledbooltrueRequire SASL/PLAIN authentication on all listeners (clients, brokers and controllers). Passwords travel unencrypted without TLS, so keep the cluster network private.
auth.existingSecretstring""Existing Secret with the passwords: key inter-broker-password plus one key per user, named like the user. Passwords must not contain " or \.
auth.interBrokerPasswordstring""Password of interBrokerUser. Generated once and kept across upgrades when empty.
auth.interBrokerUserstring"inter_broker"Username brokers and controllers use among themselves. It can also be used as an admin login.
auth.userslist[{"name":"user1","password":""}]Users that clients log in with. A password left empty is generated once and kept across upgrades. Names may use letters, digits, ., `

Deploy automq with OpenTenant

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