emqx

by QuenchWorks

Helm chartv0.0.17App 6.3.3BUSL-1.1Verified publisher

EMQX, the massively scalable distributed MQTT broker for IoT, IIoT, and connected vehicles (MQTT 5.0 over TCP, TLS, and websockets, with a web dashboard). Hardened by QuenchWorks as a minimal, nonroot, read-only-rootfs, CVE-gated image, cosign-signed and pinned by digest. Runs as a StatefulSet with a persistent data volume. Licensed BSL 1.1 (single node free; clustering requires a commercial license).

About this chart

Quenchworks EMQX

Hardened EMQX (the massively scalable distributed MQTT broker for IoT, IIoT, and connected vehicles) on a minimal, nonroot, CVE-gated image, pinned by digest and cosign-signed.

License: EMQX 6.x is Business Source License 1.1. A single node (the chart default) is free for any use; running a cluster (replicaCount > 1) requires a commercial license from EMQ. See the license FAQ.

Install

helm install emqx oci://ghcr.io/quenchworks/charts/emqx

EMQX runs nonroot on a read-only root filesystem as a single-node StatefulSet, with its node data (mnesia, generated configs, session state) on a persistent /opt/emqx/data volume and logs on an emptyDir at /opt/emqx/log.

Ports

PortNamePurpose
1883mqttMQTT 5.0 (TCP)
8883mqttsslMQTT over TLS
8083wsMQTT over websockets
8084wssMQTT over secure websockets
18083dashboardweb dashboard + REST API + /status

Liveness/readiness probe GET /status on the dashboard port (18083); it returns 200 once the node is up (~8s after start).

kubectl port-forward svc/emqx-emqx 18083:18083
curl http://127.0.0.1:18083/status      # node health
# browse http://127.0.0.1:18083  (admin / <dashboardPassword>)

Configuration

ValueDefaultNotes
image.repositoryghcr.io/quenchworks/images/emqx
image.digest(CI-maintained)signed multi-arch index
replicaCount1>1 = cluster, needs a commercial license
dashboardPasswordpublicdashboard admin password (user admin)
existingSecret""read the password from a Secret instead (wins)
existingSecretPasswordKeydashboard-passwordkey in existingSecret
persistence.enabledtruevolumeClaimTemplate at /opt/emqx/data
persistence.size5Gi
persistence.existingClaim""reuse a pre-created PVC
service.typeClusterIP
service.ports.*1883/8883/8083/8084/18083listeners + dashboard
tls.enabledfalseThe MQTT/SSL (8883) and WSS (8084) listeners serve this cert (at /tls) instead of the built-in demo one.
tls.existingSecret""Use this kubernetes.io/tls Secret (1st choice).
tls.certManager.enabledfalseRequest a cert-manager Certificate from tls.certManager.issuerRef (2nd choice).
tls.selfSigned.validityDays365Otherwise Helm generates a CA + certificate, kept across upgrades.

Production notes

  • Set a dashboard password (dashboardPassword or existingSecret); the upstream default is admin/public.
  • The chart injects a single-node EMQX_NODE__NAME bound to the pod IP. For clustering (commercial license), use upstream's EMQX Operator or extend this chart with EMQX's cluster discovery. The BSL terms apply.
  • Tune EMQX via extraEnvVars using the EMQX_* env override convention (e.g. EMQX_LISTENERS__TCP__DEFAULT__MAX_CONNECTIONS).

Verify the image

cosign verify ghcr.io/quenchworks/images/emqx \
  --certificate-identity-regexp 'https://github.com/quenchworks/.+' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Each build also ships an SPDX SBOM and SLSA provenance attestation. Verify them with gh attestation verify oci://ghcr.io/quenchworks/images/emqx --owner quenchworks.

Deploy emqx with OpenTenant

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