# KubeMQ Documentation (/) **One broker. Every protocol.** KubeMQ is a Kubernetes-native enterprise message broker. It runs as one container on Docker or Podman for development and testing, or as an operator-managed cluster of 3 or more servers on Kubernetes. Your existing Kafka, RabbitMQ, MQTT, AMQP, STOMP, AWS SQS/SNS, and Google Cloud Pub/Sub clients connect to it unchanged — and native SDKs in 10 languages give you queues, pub/sub, and request-reply over gRPC, REST, and WebSocket. No ZooKeeper, no external database, no sidecars. ## What brings you here? [#what-brings-you-here] ## Keep your clients — change one connection string [#keep-your-clients--change-one-connection-string] KubeMQ speaks each protocol natively, on its standard port. The client that talks to Kafka or RabbitMQ today talks to KubeMQ tomorrow. ## Built on four messaging patterns [#built-on-four-messaging-patterns] Every protocol and every SDK rides the same core patterns. ## Why teams choose KubeMQ [#why-teams-choose-kubemq] * **Built for Kubernetes** — [Helm charts and an operator](/deploy/install/kubernetes), KEDA autoscaling, and clustering designed for safe rollouts. * **Enterprise-grade** — [role-based access control, audit logging](/configure), FIPS builds, and replicated storage with a strict zero-loss durability mode. * **AI-ready** — built-in [Model Context Protocol (MCP) and Agent-to-Agent (A2A) gateways](/aiway) for agentic workloads. * **Simple to run** — one container, a [web dashboard](/operate), and the [kmq CLI](/deploy/install/kmq) for installing, messaging, administration, and observability. ## Explore the documentation [#explore-the-documentation] *** Questions? [Open an issue on GitHub](https://github.com/kubemq-io/kubemq-community) or [Contact KubeMQ](https://kubemq.io/contact-sales/). Ready for production? [Buy a license](/licensing#buy). Building with AI agents? This site ships [llms.txt](/llms.txt) for machine consumption. # KubeMQ Aiway (/aiway) **KubeMQ Aiway is an AI Agents Fabric** — a switchboard that lets AI agents and AI applications find each other, talk to each other, and stream results in real time, with the reliability of an enterprise message broker underneath. **A2A** and **MCP** are the two doors into the same fabric: register an agent, discover it by capability, invoke it synchronously or as a live stream, and orchestrate the whole thing from an LLM. ## What is KubeMQ Aiway [#what-is-kubemq-aiway] Aiway is a switchboard for AI agents. Agents register what they can do, callers find them by capability, and the fabric routes every call — synchronous or streamed — over an enterprise message broker. KubeMQ does the discovery, routing, protocol bridging, streaming, security, high availability, and observability so that no caller and no agent has to. The agents themselves stay **plain HTTP services** — no KubeMQ SDK, no broker library, no protobuf, no special runtime. An agent is just an HTTP server that speaks JSON-RPC 2.0 (and, optionally, Server-Sent Events). Aiway bridges the broker to that endpoint for you, so you can wrap an existing internal microservice as a first-class AI agent in minutes. Two doors open into the same fabric: * **A2A (Agent-to-Agent)** — agents register their endpoint and capabilities; any caller discovers them *by capability* and invokes them, synchronously or as a live stream. * **MCP (Model Context Protocol)** — LLM hosts (Claude Desktop, IDEs, agent frameworks) plug in over the open MCP standard and gain both **messaging** and **agent orchestration** through a single endpoint. ## The big picture [#the-big-picture] A caller — over A2A HTTP, gRPC/REST, or an MCP host — reaches the fabric, which discovers the target agent, bridges the call to its plain-HTTP endpoint, and relays the response (or a live SSE stream) back. The agents never touch the broker directly. *Callers reach Aiway over A2A, gRPC/REST, or MCP; the Agent Bridge POSTs to each agent's plain-HTTP URL and the streaming relay carries live events back.* The **Agent Bridge** is the per-agent virtual subscriber that translates broker messages into HTTP calls to your agent (and relays responses and SSE streams back). It is why agents need zero KubeMQ dependency: the bridge does all the broker and protocol translation, so the agent only ever sees an HTTP `POST`. The MCP **agent-bridge tools** (`agent_list`, `agent_info`, `agent_send`, `agent_query`, covered under [MCP](/aiway/mcp)) invoke agents *through* this same Agent Bridge — same concept at two layers, not two meanings. The tools are the LLM-facing door; the Agent Bridge is the per-agent connector they (and A2A callers) route through. ## One fabric, three planes [#one-fabric-three-planes] Aiway is not "A2A plus a separate MCP server." It is **one fabric** with three planes that share the same core and compose freely — an LLM over MCP can enqueue durable work *and* call an A2A agent in the same session, and a gRPC backend can invoke the same agent an LLM just used. | Plane | Door | What it does | | ------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | | **Agent plane** | A2A | Agents register, get discovered by capability, get invoked, and stream results. | | **LLM plane** | MCP | LLM hosts discover and drive both agents and messaging through one endpoint. | | **Messaging plane** | KubeMQ core | Durable queues, pub/sub events, a persisted/replayable event log, and RPC (commands/queries) — the same primitives the MCP messaging tools expose. | ## Two doors in [#two-doors-in] ## The enterprise envelope [#the-enterprise-envelope] What makes Aiway production-grade rather than a demo is the envelope around both doors — the same auth, HA, guardrails, and observability that the rest of KubeMQ runs on: * **Security** — token-based authentication, per-agent ownership (only the registrant can modify or remove an agent), origin validation, and TLS / mutual-TLS. * **High availability** — the agent registry is replicated to every node, so an agent registered on one node is reachable and discoverable cluster-wide; if a node fails, its agents expire and re-register elsewhere and the roster self-heals. * **Guardrails & backpressure** — TTL liveness, default and max request timeouts, a max-agents ceiling, a per-agent concurrency cap, a max agent-response size, and traffic gating that rejects calls when the core isn't ready instead of hanging. * **Observability** — per-agent request, error, latency, and active-stream metrics (Prometheus + a durable per-agent store) plus a live operations dashboard, so you can govern an entire agent fleet. Both doors run on the [shared HTTP server](/connectors/concepts/shared-http-server) (port 9090\) and inherit its unified middleware. The shared foundations are documented once under Connectors: ## Start in ten minutes [#start-in-ten-minutes] Any running KubeMQ works, including [Try KubeMQ](/deploy/quickstart). MCP and A2A are on by default on port 9090. On Kubernetes, run `kubectl --context YOUR_KUBE_CONTEXT -n kubemq port-forward svc/messaging-rest 9090:9090` first. | You want to | Start here | Time | | ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | Connect Claude Desktop, Cursor or another MCP host | [Connect an MCP host](/aiway/mcp/getting-started#connect-an-mcp-host) | 5 minutes | | Turn a plain HTTP service into an agent | [Fastest path: wrap a plain HTTP service](/aiway/a2a/getting-started#fastest-path-wrap-a-plain-http-service) | 10 minutes | | Send to a queue and call an agent from one LLM prompt | [One prompt, two tool calls](/aiway/tutorial/orchestrate-from-an-llm#one-prompt-two-tool-calls) | 5 minutes after the first two | With authentication off, anything that reaches port 9090 can call every MCP tool. Connect an LLM host only to a test server, or turn on [authentication](/aiway/mcp/guides/authentication) with a restricted role. To turn MCP off, see [Getting started with MCP](/aiway/mcp/getting-started#enable--disable). ## Go deeper [#go-deeper] # Use cases (/aiway/use-cases) New to Aiway? Start with the [overview](/aiway). KubeMQ Aiway is an AI Agents Fabric: agents register, callers discover them by capability, and anyone invokes them — synchronously or as a live stream — over an enterprise message broker. The scenarios below show where that fabric is uniquely strong, grouped by the problem they solve. Each one names the scenario, how Aiway delivers it, and why it is hard to get this cleanly any other way. A few terms recur: * **Agent Bridge** — the per-agent virtual subscriber KubeMQ spawns for each registered agent. It translates broker messages into HTTP POSTs to your agent's URL and relays the response (or live stream) back, which is why agents need no KubeMQ SDK. See [Building agents](/aiway/a2a/guides/building-agents). * **Skill tags** — the capability labels (`tags[]`) an agent advertises on each skill, used to discover agents by what they can do rather than by URL. See the [Agent registry](/aiway/a2a/registry). * **The transport-vs-application error split** — Aiway returns `Executed: false` when the agent never processed the request (unreachable, timeout, oversized response), so it is **safe to retry**; an `Executed: true` response with a JSON-RPC error means the agent ran and returned an error, so **don't blind-retry**. See [Error handling](/aiway/a2a/error-handling). ## Onboarding & orchestration [#onboarding--orchestration] ### Zero-SDK agent onboarding [#zero-sdk-agent-onboarding] **Scenario:** Turn an existing internal HTTP microservice — a Python summarizer, a Go OCR service, a Node scraper — into a first-class AI agent in minutes. **How:** the service stays a plain HTTP server. It registers an Agent Card; the Agent Bridge does all protocol translation. **Why Aiway:** no KubeMQ client library, broker SDK, protobuf, or special runtime in the agent — most frameworks force an SDK and a specific language, while Aiway onboards *any* HTTP service in any stack. Walk it end-to-end in the [Tutorial](/aiway/tutorial). ### LLM as orchestrator over a real agent fleet [#llm-as-orchestrator-over-a-real-agent-fleet] **Scenario:** An LLM host (Claude Desktop, an IDE, an agent framework) plans a task, discovers the right specialist agents, invokes them, and persists intermediate results — all from one MCP connection. **How:** `agent_list` / `agent_info` to discover, `agent_send` / `agent_query` to invoke, `events_store_publish` to log, `queue_send` to hand off — same session, same fabric. **Why Aiway:** the LLM gets messaging **and** agent orchestration through one open-standard endpoint, with enterprise auth and high availability — no glue code, no custom tool server per agent. See the [MCP agent-bridge tools](/aiway/mcp/tools/agent-bridge). ### Polyglot, mixed-protocol orchestration [#polyglot-mixed-protocol-orchestration] **Scenario:** A gRPC backend, a REST web app, and an LLM all call the *same* agent during one workflow. **How:** every transport — the A2A HTTP gateway, gRPC, REST, the MCP bridge — converges on the same Agent Bridge path. **Why Aiway:** one agent, callable from every protocol your stack already speaks, with no per-protocol adapters or duplicated endpoints. See [Synchronous messaging](/aiway/a2a/sync-messaging). ## Real-time & long-running work [#real-time--long-running-work] ### Real-time long-running tasks with live progress [#real-time-long-running-tasks-with-live-progress] **Scenario:** A caller kicks off a multi-minute job — document generation, transcode, deep research, multi-step reasoning — and watches `task.status` and `task.artifact` events stream in with a progress bar. **How:** `message/stream` opens an SSE relay with keepalive, idle timeout, and auto-cancel when the caller disconnects. **Why Aiway:** streaming, cancellation, and backpressure (per-agent concurrency cap, response-size limits) are built in — *production* streaming, not a fragile long-poll. See [Streaming (SSE)](/aiway/a2a/streaming). ### Human-in-the-loop and approval flows [#human-in-the-loop-and-approval-flows] **Scenario:** An agent streams a draft, a human reviews it, and on approval the workflow resumes or hands off to another agent. **How:** streaming for live drafts; durable queues or persisted events park the task while it awaits a decision; a second agent invocation continues the work. **Why Aiway:** real-time streaming *and* durable hand-off coexist on one fabric, so long-lived, human-gated workflows don't need a separate workflow engine. See the [Streaming task pipeline](/aiway/a2a/scenarios/streaming-task-pipeline). ### Ephemeral, on-demand agents [#ephemeral-on-demand-agents] **Scenario:** Spin up specialist agents on demand — per job, per tenant — have them register, take work, then disappear, without callers caring. **How:** an agent registers on start, heartbeats while alive, and TTL-expires when gone; discovery and routing always reflect the live set. **Why Aiway:** the self-healing, capability-indexed roster makes transient agents first-class — callers always see only what is actually available right now. See the [Agent registry](/aiway/a2a/registry). ## Routing & multi-tenancy [#routing--multi-tenancy] ### Capability-based dynamic routing [#capability-based-dynamic-routing] **Scenario:** "Find an agent that can `translate-legal` for `de-DE`, prefer the lowest-latency one, call it, and fall back to another if it errors." **How:** discover via `GET /agents?skill_tags=…` (or `agent_list`), select at runtime, invoke, and use the transport-vs-application error split to fail over. **Why Aiway:** agents are addressed **by capability**, not by URL — new agents appear in discovery the moment they register, and the routing logic never changes. See the [Multi-agent gateway](/aiway/a2a/scenarios/multi-agent-gateway). ### Multi-tenant agent directory [#multi-tenant-agent-directory] **Scenario:** Multiple teams publish agents into one shared directory; each team can manage only its own; everyone can discover and call them, subject to authorization. **How:** ownership is bound to the registering identity (only the owner can modify or deregister; a blank owner fails closed); discovery is open, invocation is authenticated. **Why Aiway:** a built-in, fail-closed ownership model turns a shared registry into a safe internal agent marketplace, without bespoke RBAC plumbing. See the [Agent registry](/aiway/a2a/registry). ### Distributed, multi-region agent mesh [#distributed-multi-region-agent-mesh] **Scenario:** Agents run close to data or users in different nodes or regions; callers anywhere reach any agent. **How:** the registry replicates cluster-wide; agents register on a local node; the cluster routes calls to the owning node; on node loss, agents re-register elsewhere. **Why Aiway:** location transparency and a self-healing registry come from the broker, so callers never track where an agent physically runs. See the [A2A architecture](/aiway/a2a/architecture). ## Reliability & governance [#reliability--governance] ### Resilient, retry-aware agent calls [#resilient-retry-aware-agent-calls] **Scenario:** A flaky agent or a slow network shouldn't corrupt a workflow, and the orchestrator needs to know *what* failed. **How:** the `Executed: false` (transport, safe-retry) vs `Executed: true` plus error (application, don't blind-retry) split, with specific A2A error codes and per-agent timeouts. **Why Aiway:** the fabric encodes retry-safe semantics at the protocol level, so orchestration logic gets clean, correct failure signals for free. See [Error handling](/aiway/a2a/error-handling). ### Secure enterprise agent gateway [#secure-enterprise-agent-gateway] **Scenario:** Expose agents to partners or teams behind authentication, mutual TLS, and origin controls, and reject traffic when the platform is degraded. **How:** the shared security chain — auth, ownership, TLS/mTLS, trusted origins, traffic gating — wraps every agent call. **Why Aiway:** an enterprise security envelope is built into the fabric, so you don't bolt a gateway in front of every agent. See [Agent authentication](/aiway/a2a/guides/authentication). ### Governed agent fleet [#governed-agent-fleet] **Scenario:** An ops team needs per-agent traffic, error rates, latency, active streams, and a live roster across a large fleet, surviving restarts. **How:** per-agent metrics (Prometheus plus a durable store) and a live dashboard; TTL and heartbeat keep the roster honest. **Why Aiway:** fleet-grade observability and lifecycle are native — not something you assemble from logs after the fact. See the [A2A configuration](/aiway/a2a/configuration) for the limits that govern a fleet. ## Hybrid pipelines & safe LLM access [#hybrid-pipelines--safe-llm-access] ### Agents plus durable messaging [#agents-plus-durable-messaging] **Scenario:** An agent's streamed artifacts are written to a persisted, replayable event log; downstream agents and classic consumers read from it; failed work lands in a dead-letter queue for human review. **How:** mix `events_store_publish` / `events_store_read` (or queues with a `dead_letter_queue`) with agent invocation, on one fabric. **Why Aiway:** agents and enterprise messaging are the *same* substrate, so you compose durable, replayable, at-least-once pipelines with AI agents inside them — no integration layer. See the [Events Store tools](/aiway/mcp/tools/events). ### MCP tool gateway for safe enterprise access [#mcp-tool-gateway-for-safe-enterprise-access] **Scenario:** Give any MCP-speaking LLM safe, governed access to enterprise messaging — queues, events, persisted logs, RPC — without handing it the raw broker. **How:** the MCP messaging tools expose curated operations with input schemas, reserved-channel protection, timeouts, and auth. **Why Aiway:** the LLM gets a bounded, schema'd, authenticated surface onto real enterprise messaging — a controlled blast radius, not a firehose. See the [Queue tools](/aiway/mcp/tools/queues). ## Next steps [#next-steps] # Configure KubeMQ (/configure) Everything you need to configure KubeMQ for production. KubeMQ ships as a single binary with no external dependencies, so configuring it comes down to choosing how you run it and tuning the settings for your workload. Looking for metrics, tracing, and logging? **Turning them on** is here — [Observability settings](/configure/reference/observability) has the OpenTelemetry, audit and notification fields for both targets. **Reading and acting on them** lives under [Operate](/operate). # Connectors (/connectors) A **connector** is a built-in, server-side **protocol gateway** in kubemq-server that bridges an external protocol to KubeMQ messaging — no KubeMQ SDK is required on the client. Point a standard HTTP, JSON-RPC, or CloudEvents client at the server and it speaks to the message broker for you. ## What is a connector [#what-is-a-connector] KubeMQ ships connectors in **two classes**, all built into the server. **Shared-HTTP gateway** — runs on the shared HTTP server (port 9090): * **CloudEvents** — a native CNCF CloudEvents-over-HTTP interface for all five messaging patterns — Events, Events Store, Queues, Commands, and Queries — with CESQL routing and SSE. KubeMQ's two AI-facing HTTP gateways — **AI Agents (A2A)** and **MCP** — also fit this connector definition: they are built-in, server-side HTTP gateways that run on the same shared HTTP server. They are now documented under [Aiway](/aiway), KubeMQ's AI Agents Fabric, where the agent-to-agent story is told as a whole. **Wire-protocol connectors** — seven connectors that speak a standard messaging protocol on their **own dedicated ports**, so an existing client connects by changing only its connection string, broker address, or endpoint URL: * **AMQP 1.0** — native AMQP 1.0 clients, all five patterns (ports 5672 / 5671). * **RabbitMQ (AMQP 0-9-1)** — RabbitMQ clients over the AMQP 0-9-1 wire dialect (5672 / 5671). * **Kafka** — unmodified Kafka clients over the native Kafka wire protocol (ports 9092 / 9093). * **AWS (SQS & SNS)** — unmodified AWS SDKs over the real SQS/SNS HTTP protocols (port 4566). * **MQTT** — MQTT 3.1.1 / 5.0 clients (ports 1883 / 8883 / 8083). * **STOMP** — native STOMP 1.0/1.1/1.2 clients (ports 61613 / 61614). * **Google Cloud Pub/Sub** — unmodified Pub/Sub clients via `PUBSUB_EMULATOR_HOST` over the real Pub/Sub v1 gRPC protocol (port 8085). A connector is distinct from the other ways you reach KubeMQ. A **native SDK client** links a KubeMQ library into your application and speaks the gRPC API. A **framework adapter** (NestJS, Spring Boot, Celery, KEDA, and the others under [Integrations](/integrations)) wires KubeMQ into a specific framework's programming model. A connector, by contrast, runs **inside the server** and accepts a standard wire protocol directly — nothing KubeMQ-specific is installed on the caller. The **HTTP gateways** listen on the **shared HTTP server (port 9090)** and are **enabled by default** — start kubemq-server and CloudEvents (along with the Aiway gateways, A2A and MCP) is live. The **wire-protocol connectors** listen on their own dedicated ports. Two of them — **Kafka** (9092) and **RabbitMQ / AMQP 0-9-1** (5672) — are **on by default**, so a stock server binds those ports out of the box. The other five (AMQP 1.0, AWS, MQTT, STOMP, Google Cloud Pub/Sub) are **opt-in (disabled by default)** — each opens a new network listener, so you enable only the ones you need. *CloudEvents is the shared-HTTP gateway documented here; the AI gateways (A2A & MCP) run on the same port 9090 server but are documented under Aiway. The seven wire-protocol connectors listen on their own ports. All front the same message broker.* ## The HTTP gateway [#the-http-gateway] AI agents (A2A) and MCP now live under **[Aiway](/aiway)** — KubeMQ's AI Agents Fabric. They are still built-in HTTP gateways on the shared HTTP server; their docs just moved to where the agent-to-agent story is told end to end. ## The wire-protocol connectors [#the-wire-protocol-connectors] Speak a standard messaging protocol on a dedicated port — point an existing client at KubeMQ by changing only its connection string, broker address, or endpoint URL. ## Shared foundations [#shared-foundations] Every **HTTP gateway** — CloudEvents here, plus the Aiway gateways (A2A and MCP) — runs on **one HTTP server** and shares the same auth model, middleware chain, and metrics surface. That shared story is told once here, and each gateway links back to it instead of repeating it (the wire-protocol connectors document their own ports and auth in their own pages): Every HTTP gateway also inherits the unified middleware pipeline — JWT auth, CORS, origin validation, TLS/mTLS, a traffic gate, and OpenTelemetry tracing — and the reserved `_AGENTS_.` channel prefix, which user channels may not use. Connector metrics roll up into the cluster-wide observability view alongside the rest of the server. To **disable** an HTTP gateway, set its enable env var to `false` — for example `CONNECTORSCE_ENABLE=false` for CloudEvents. The HTTP gateways are on by default; you never need to set `=true` for them. See [Shared HTTP server](/connectors/concepts/shared-http-server) for their disable vars and why the names look the way they do. Among the **wire-protocol connectors**, Kafka and RabbitMQ (AMQP 0-9-1) are on by default — turn either off with `CONNECTORS_KAFKA_ENABLE=false` or `CONNECTORS_AMQP_ENABLE=false`. The other five are opt-in — disabled by default. Enable each one explicitly with its enable env var: `CONNECTORSMQTT_ENABLE=true`, `CONNECTORS_AMQP10_ENABLE=true`, `CONNECTORS_STOMP_ENABLE=true`, `CONNECTORS_AWS_ENABLE=true`, `CONNECTORS_GCP_ENABLE=true`. Each wire-protocol connector documents its own ports, enable var, and auth in its own pages. ## Migrating from another broker [#migrating-from-another-broker] Already running RabbitMQ, ActiveMQ, JMS, AMQP 1.0, Kafka, AWS SQS/SNS, STOMP, GCP Pub/Sub, or MQTT? [Migrate from another broker](/connectors/how-to/migration) maps each ecosystem to its KubeMQ wire-protocol connector and walks through the cutover — endpoint changes, concept mapping, a working client example, and what does not carry over — for all nine. # Choose your path (/deploy) KubeMQ runs as one server on Docker for development and test, or as a cluster of three or more servers on Kubernetes for production. Start by trying it on your machine in 5 minutes, then pick the page for your goal. An air-gapped install is about 60 minutes of work in two sittings, with a wait between them while KubeMQ issues your offline license file. ## What do you want to do? [#what-do-you-want-to-do] | You want to | Go to | Where it runs | License you need | Time | | ----------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------- | ------------------------------------------- | ---------- | | Try KubeMQ on your laptop | [Try KubeMQ](/deploy/quickstart) | One Docker server | None: a 14-day evaluation starts on its own | 5 minutes | | Develop or test on one server | [Install with kmq](/deploy/install/kmq), or [Install with Docker](/deploy/install/docker) | One Docker or Podman server | Trial key (Docker), or a license key | 10 minutes | | Run a production cluster | [Install on Kubernetes](/deploy/install/kubernetes) | Kubernetes, 3 or more servers | Trial key (Kubernetes), then a license key | 30 minutes | | Install with no internet access | [Install air-gapped](/deploy/install/air-gapped) | Kubernetes, 3 or more servers | Offline license file | 60 minutes | | Move from Kafka, RabbitMQ, SQS, MQTT, STOMP, Pub/Sub, AMQP or JMS | [Migrate from another broker](/connectors/how-to/migration) | Any | Same as the path you install with | Per guide | | Connect AI agents or an MCP (Model Context Protocol) host | [KubeMQ Aiway](/aiway) | Any | Same as the path you install with | 10 minutes | | Upgrade a running KubeMQ | [Upgrade KubeMQ](/deploy/upgrade) | Where it runs today | Your current license | 15 minutes | | Leave the older `kubemq` image or chart | [Move from legacy KubeMQ](/deploy/upgrade/from-legacy) | — | Contact support | — | Each license in the table is compared on [Plans compared](/licensing#compare-the-options). ## kmq or manual commands? [#kmq-or-manual-commands] | Compare | kmq | Docker commands | Helm commands | | -------------------------------------------------------------- | ------------------------------------------------- | ------------------------------ | ----------------------------------------- | | Runs in PowerShell, no WSL (Windows Subsystem for Linux) shell | Yes | No | No | | Adds the license for you | Yes | No | No | | Resumes after an interruption | Yes | No | Re-run the same Helm command | | Best when | You want one tool for install, license and checks | You manage containers yourself | You manage Kubernetes with Helm or GitOps | All three paths install the same server and end in the same checks. Every command on these pages installs the latest release. The artifact names and how to pin a release are on [Requirements and supported setups](/deploy/install/requirements#artifacts-and-versions). # Production checklist (/deploy/production-checklist) Use this list before KubeMQ takes production traffic. Each item links to the page that shows how. The last group covers your client applications. ## Cluster shape [#cluster-shape] * [ ] An odd number of servers, at least three, chosen for the long term ([Requirements and supported setups](/deploy/install/requirements#kubernetes)). * [ ] CPU and memory set per server, and servers spread across nodes ([Deployment & High Availability](/configure/reference/deployment#high-availability)). * [ ] A storage class with room for every server's volume ([Requirements and supported setups](/deploy/install/requirements#sizing)). ## License [#license] * [ ] A license key or an offline license file, not the evaluation or a trial key ([Plans compared](/licensing#which-one-fits)). * [ ] The license check shows every server `active` ([Install on Kubernetes](/deploy/install/kubernetes#steps)). * [ ] License expiry and license state monitored ([How licensing works](/licensing/how-it-works#check-license-status)). * [ ] On an air-gapped cluster, a reminder to renew the offline license file ([Install air-gapped](/deploy/install/air-gapped#renew-before-it-expires)). ## Security [#security] * [ ] A management certificate from an authority you trust ([Install on Kubernetes](/deploy/install/kubernetes#management-certificate)). * [ ] The administrator password kept in your secrets manager ([Install on Kubernetes](/deploy/install/kubernetes#send-a-test-message)). * [ ] Client authentication on, and a test client with no credentials refused ([Security (Auth · TLS)](/configure/reference/security#authentication)). * [ ] Channel permissions set per client ([Security (Auth · TLS)](/configure/reference/security#authorization)). * [ ] TLS on the interfaces your clients use ([Security (Auth · TLS)](/configure/reference/security#tls--mtls)). * [ ] Connectors you use secured: Kafka [Authentication](/connectors/kafka/how-to/authentication) and [TLS and mTLS](/connectors/kafka/how-to/tls-and-mtls); RabbitMQ [Authentication](/connectors/rabbitmq/how-to/authentication) and [TLS and mTLS](/connectors/rabbitmq/how-to/tls-and-mtls). * [ ] Network policies that limit which workloads reach the server ports ([Requirements and supported setups](/deploy/install/requirements#network)). ## Network [#network] * [ ] Outbound HTTPS to `license.kubemq.io`, or an offline license file ([Requirements and supported setups](/deploy/install/requirements#network)). * [ ] Your applications reach the interfaces they use ([Install on Kubernetes](/deploy/install/kubernetes#connect-your-applications)). * [ ] Only the interfaces you use exposed outside the cluster ([Interfaces (gRPC · REST · API · HTTP)](/configure/reference/interfaces)). ## Data [#data] * [ ] A backup method chosen and a restore tested ([Back up and restore](/operate/backup-and-restore#steps)). Back up the Docker volume with the container stopped. For Kubernetes, [contact support](mailto:support@kubemq.io) before relying on a restore. ## Operations [#operations] * [ ] Metrics scraped and alerts set ([Prometheus Metrics](/operate/observability/metrics)). * [ ] Logs collected ([Structured Logging](/operate/observability/logging)). * [ ] An upgrade plan written ([Upgrade KubeMQ](/deploy/upgrade)). * [ ] With GitOps, the chart version pinned (Pin a version on [Install on Kubernetes](/deploy/install/kubernetes)). ## Your applications [#your-applications] * [ ] Clients reconnect with backoff after a server restart and handle each error category ([Error Handling Patterns](/learn/guides/error-handling)). * [ ] A timeout on every command and query ([Configure Timeouts & Retries](/learn/rpc/how-to/timeout-configuration)). * [ ] A dead-letter queue on every critical queue ([Dead Letter Queue](/learn/queues/tutorials/dead-letter-queue)). * [ ] Visibility timeouts matched to processing time ([Configure Visibility Timeout](/learn/queues/how-to/visibility-timeout)). * [ ] TLS on every client connection ([Connect with TLS & mTLS](/learn/guides/connect-with-tls)). * [ ] Traces and metrics from every client ([OpenTelemetry Integration](/learn/guides/opentelemetry)). * [ ] Channel names and their lifecycle managed ([Channel Management](/learn/guides/channel-management)). * [ ] Volumes sized for channel growth: retention limits apply only on the legacy storage engine ([Storage Engines](/configure/reference/storage-engines#native-retention-scope)). ## Related [#related] * [Install on Kubernetes](/deploy/install/kubernetes) * [Upgrade KubeMQ](/deploy/upgrade) * [Messaging Fundamentals](/learn/concepts) # Try KubeMQ (/deploy/quickstart) In about five minutes you start a KubeMQ server on your machine, create its administrator, send a message and read it back. The server runs a 14-day evaluation that needs no signup. Time: about 5 minutes. Starting the evaluation accepts the [evaluation terms](https://onboarding.kubemq.io/evaluation-terms) and sends usage data to KubeMQ, as [Data sent to KubeMQ](/licensing/data-sent) describes. ## Before you start [#before-you-start] * Docker Desktop or Docker Engine, running. Podman works too; see [Requirements and supported setups](/deploy/install/requirements#platforms). On Windows, use Docker Desktop; only the Docker tab's commands need WSL. * Ports 50000, 9090, 8080 and 9092 free on this machine, and 5672 for the kmq tab. * Outbound HTTPS to `license.kubemq.io`, directly or through a proxy; see [Requirements and supported setups](/deploy/install/requirements#network). * On Apple silicon or another Arm machine, the Docker tab needs x86-64 emulation in Docker. ## Run KubeMQ [#run-kubemq] ### Install kmq [#get-kmq] kmq is the KubeMQ command-line tool. On macOS and Linux, download the installer: ```bash curl -fsSL https://raw.githubusercontent.com/kubemq-io/kmq/main/install.sh -o install-kmq.sh ``` Run it: ```bash sh install-kmq.sh ``` Check that kmq runs: ```bash kmq version ``` You should see: ```text title="Output" { "version": "..." } ``` If the installer notes that its folder is not in your PATH, run the `export PATH` line it prints, then `kmq version` again. On Windows, in PowerShell: ```powershell Invoke-WebRequest -Uri https://raw.githubusercontent.com/kubemq-io/kmq/main/install.ps1 -OutFile install-kmq.ps1 ``` ```powershell Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass ``` ```powershell & .\install-kmq.ps1 ``` ```powershell kmq version ``` The second command allows the downloaded script in this window only. ### Start a server [#start-a-server] ```bash kmq onboard --goal evaluation --name kubemq --pull --deadline 10m ``` You should see: ```text title="Output" { "installation_id": "...", "state": "runtime_started_needs_management_setup", "target": "docker", "resource_id": "...", "data_retained": true, "next_action": "complete_management_authentication_then_verify" } ``` This creates an installation named `kubemq`: a container named `kubemq` and a volume named `kubemq-data`, with every port bound to this machine only. With Podman, add `--runtime podman`. ### Create the administrator [#create-the-administrator] ```bash kmq auth setup --installation YOUR_INSTALLATION_ID --username admin ``` Replace: `YOUR_INSTALLATION_ID` — the `installation_id` value that `kmq onboard` printed. When kmq asks, type a new password twice. kmq shows the minimum length. You should see: ```text title="Output" { "state": "authenticated", "credential": "...", "account_id": "...", "role": "read_write", "next_action": "context_use_then_verify_installation" } ``` If kmq reports `Management connection failed`, the server is still starting: wait a few seconds and run it again. If kmq reports `credential_storage_unavailable` on Linux, add `--credential-backend file`. AI coding agents: a person must type this password, so hand the terminal over. See the AI coding agent section of [Install with kmq](/deploy/install/kmq#use-kmq-from-an-ai-coding-agent). ### Point kmq at the server [#point-kmq-at-the-server] ```bash kmq context use kubemq ``` You should see: ```text title="Output" { "context": "kubemq", "status": "active" } ``` `kmq auth setup` saved a connection named `kubemq`; this command makes it the one kmq uses. ### Send a message [#send-a-message] ```bash kmq queue send orders '{"id":1}' ``` You should see: ```text title="Output" { "messageId": "...", "sentAt": "..." } ``` On Windows, in PowerShell: ```powershell '{"id":1}' | Set-Content message.json ``` ```powershell kmq queue send orders --file message.json ``` ### Receive it [#receive-it] ```bash kmq queue receive orders ``` You should see: ```text title="Output" [ { "messageId": "...", "clientId": "...", "metadata": "", "body": { "id": 1 }, "bodyBase64": "eyJpZCI6MX0=", "timestamp": ..., "sequence": 1, "tags": "", "receivedCount": 1, "reRoutedFrom": "", "expirationAt": 0, "delayedTo": 0 } ] ``` Open `http://localhost:8080` and sign in as `admin` to see the `orders` channel. These commands are for bash on macOS and Linux. On Windows, run them in WSL (Windows Subsystem for Linux), or use the kmq tab of [Try KubeMQ](/deploy/quickstart), which runs natively on Windows. ### Start a server [#start-a-server-1] With Podman: Check that the server is running: ```bash docker ps --filter name=kubemq --format '{{.Names}}: {{.Status}}' ``` You should see: ```text title="Output" kubemq: Up ... ``` [Install with Docker](/deploy/install/docker#what-this-command-does) explains each flag. ### Create the administrator [#create-the-administrator-1] Open `http://localhost:8080` and create the administrator. If the page does not open yet, wait a few seconds and reload it. You should see the empty dashboard. ### Send a message [#send-a-message-1] ```bash curl -X POST http://localhost:9090/queue/send \ -H "Content-Type: application/json" \ -d '{ "Channel": "orders", "ClientID": "quickstart-curl", "BodyString": "{\"id\":1}" }' ``` You should see: ```text title="Output" {"is_error":false,"message":"OK","data":{...}} ``` ### Receive it [#receive-it-1] ```bash curl -X POST http://localhost:9090/queue/receive \ -H "Content-Type: application/json" \ -d '{ "Channel": "orders", "ClientID": "quickstart-curl", "MaxNumberOfMessages": 1, "WaitTimeSeconds": 5 }' ``` You should see: ```text title="Output" {"is_error":false,"message":"OK","data":{"RequestID":"...","Messages":[{"MessageID":"...","ClientID":"quickstart-curl","Channel":"orders","Body":"eyJpZCI6MX0=","Attributes":{"Timestamp":...,"Sequence":1,"ReceiveCount":1},"Policy":{"MaxReceiveCount":1024}}],"MessagesReceived":1}} ``` `Body` is base64 for `{"id":1}`. Both tabs create the same container and volume. Use one of them. This server runs a 14-day evaluation. To keep it and its data, add a license to it: continue on [Install with kmq](/deploy/install/kmq) or [Install with Docker](/deploy/install/docker), matching the tab you used. [Plans compared](/licensing) lists your options. ## Clean up [#clean-up] ```bash kmq deploy remove --installation YOUR_INSTALLATION_ID ``` Replace: `YOUR_INSTALLATION_ID` — the `installation_id` value that `kmq onboard` printed. You should see: ```text title="Output" { "installation_id": "...", "state": "runtime_removed_data_retained", "target": "docker", "resource_id": "...", "data_retained": true, "next_action": "plan_new_installation_with_continue_volume_to_reuse_retained_data" } ``` ```bash docker stop kubemq ``` ```bash docker rm kubemq ``` Both keep the `kubemq-data` volume, so the same server can start again later. This deletes every message and the evaluation. A new volume does not guarantee a new evaluation. ```bash docker volume rm kubemq-data ``` ## If something goes wrong [#if-something-goes-wrong] * **A port is already in use.** Stop the program that uses it. [Install with Docker](/deploy/install/docker#what-this-command-does) lists each port. * **kmq reports `volume already exists`.** Run step 2 again with `--continue-volume`, then `kmq auth login --installation YOUR_INSTALLATION_ID --username admin` instead of step 3. Replace: `YOUR_INSTALLATION_ID` — the `installation_id` value that the new `kmq onboard` printed. To start fresh instead, delete the volume as in [Clean up](#clean-up). * **kmq reports `container already exists`, or Docker reports that the name `kubemq` is in use.** Run `docker stop kubemq` and `docker rm kubemq`; the data stays in the volume. Then start the server again: with Docker, run step 1 again; with kmq, see the bullet above. * **The server stops soon after it starts.** Run `docker logs kubemq`. `waiting for license.kubemq.io` means a network or proxy blocks the server, which retries for about two minutes. See [Troubleshooting](/licensing/troubleshooting#first-boot-unreachable). `This evaluation has finished`, `already used its evaluation` or `Signup-free evaluation is unavailable` means no evaluation is left here: start with a trial or license key on [Install with kmq](/deploy/install/kmq#if-something-goes-wrong) or [Install with Docker](/deploy/install/docker#if-something-goes-wrong). * **Anything else.** Check `docker logs kubemq` and [Troubleshooting](/licensing/troubleshooting). ## Next steps [#next-steps] ## Container command examples ```sh docker run -d \ --pull always \ --platform linux/amd64 \ --name kubemq \ --hostname kubemq \ -p 127.0.0.1:50000:50000 \ -p 127.0.0.1:9090:9090 \ -p 127.0.0.1:8080:8080 \ -p 127.0.0.1:9092:9092 \ -e STORE_ENGINE=next \ -e STORE_NEXT_ACK_POLICY=strict \ -e STORE_STORE_PATH=/kubemq/store \ -e API_BIND_ADDRESS=0.0.0.0 \ -v kubemq-data:/kubemq/store \ europe-docker.pkg.dev/kubemq/images/kubemq-next:latest ``` ```sh podman run -d \ --pull always \ --platform linux/amd64 \ --name kubemq \ --hostname kubemq \ -p 127.0.0.1:50000:50000 \ -p 127.0.0.1:9090:9090 \ -p 127.0.0.1:8080:8080 \ -p 127.0.0.1:9092:9092 \ -e STORE_ENGINE=next \ -e STORE_NEXT_ACK_POLICY=strict \ -e STORE_STORE_PATH=/kubemq/store \ -e API_BIND_ADDRESS=0.0.0.0 \ -v kubemq-data:/kubemq/store \ europe-docker.pkg.dev/kubemq/images/kubemq-next:latest ``` # Data sent to KubeMQ (/licensing/data-sent) Everything a KubeMQ server or kmq, the KubeMQ command-line tool, sends to KubeMQ is on this page, field by field. A server with an offline license file sends nothing. Use this page to review KubeMQ's outbound traffic and data handling. ## Summary [#summary] | Call | Sent by | When | Destination | Can it be turned off? | | ----------------------------------- | ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -------------------------------------------------- | | Start an evaluation | Server | First start of a new single Docker server that has no license | `POST https://license.kubemq.io/v1/evaluation/start` | Yes: start with a trial key or license key instead | | Activate a trial key or license key | Server | A start whose key has no usable saved license: the first start, a changed key, an evaluation that gets a key, or a saved license that has expired or no longer matches | `POST https://license.kubemq.io/v1/license/activate` | No, with a trial key or license key | | Renew | Server | Regularly while an evaluation, trial key or license key is running | `POST https://license.kubemq.io/v1/license/refresh` | No, with a trial key or license key | | Usage report | Server | At start, every 15 minutes, and at shutdown | `POST https://license.kubemq.io/v1/usage/report` | No, with a trial key or license key | | Trial request | kmq, or the trial page | Only when you request, verify, claim or recover a trial key | `https://onboarding.kubemq.io/api/onboarding/v1/requests` and paths under it | Sent only when you run it | | Update check | kmq | Only when you run `kmq version --check` or `kmq update` | `HEAD https://github.com/kubemq-io/kmq/releases/latest` | Yes: it is sent only when you run them | Every server request carries `User-Agent: kubemq-server/` and standard JSON content headers. Renewals and usage reports also carry, as their credential, the latest signed license KubeMQ returned to the server. The server contacts no other KubeMQ address, and the web dashboard makes no calls to KubeMQ: it only links to KubeMQ pages. Downloading KubeMQ images, the Helm chart or kmq is an ordinary download that carries no data about you. [Requirements and supported setups](/deploy/install/requirements#network) lists every host. ## Fields sent by the server [#fields-sent-by-the-server] | Field | Evaluation | Activate | Renew | What it is | | -------------- | ---------- | -------- | ----- | ----------------------------------------------------------------------------------------------------------------------------------------- | | `key` | — | Yes | — | The trial key or license key, or the key an evaluation saved at its first start. Sent only to activation. | | `fingerprint` | Yes | Yes | Yes | The installation's identity. On Kubernetes, the ID of the `kube-system` namespace; on Docker, a random ID the server saves on its volume. | | `source` | Yes | Yes | Yes | Where the server runs: see the next table. | | `trusted_kids` | Yes | Yes | Yes | The IDs of the KubeMQ signing keys this server version trusts. | | `nonce` | — | — | Yes | A random one-time value. It carries no information about you. | ## Source fields [#source-fields] Every server call, and every usage report, carries this `source` object. | Field | Docker | Kubernetes | What it is | | -------------- | -------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `type` | `docker` | `kubernetes` | How the server runs. `standalone` appears only from a server binary run directly on a host, which is not supported. | | `host_id` | Yes | Yes | The container's hostname. On Kubernetes, the name of the node the pod runs on; some clouds put the node's private IP address in that name. | | `cluster_id` | — | Yes | The ID of the `kube-system` namespace, or empty if the server cannot read it. | | `namespace` | — | Yes | The pod's namespace. | | `pod` | — | Yes | The pod's name. | | `version` | Yes | Yes | The KubeMQ server version. | | `image_digest` | Yes | Yes | The digest of the running image. On Kubernetes the operator fills it when the image is pinned by digest; otherwise, and on Docker, it is empty unless the container sets `KUBEMQ_IMAGE_DIGEST`. | ## Usage reports [#usage-reports] A usage report goes out when the server starts, every 15 minutes while it runs, and when it shuts down. An example: ```json title="Usage report" { "license_id": "6f1c2a3e-9b4d-4c5e-8a7f-1d2e3f4a5b6c", "fingerprint": "3f2a9c1e-7b6d-4e5f-9a8b-0c1d2e3f4a5b", "boot_id": "0b3d5f7a-9c1e-4a2b-8d6f-1e3c5a7b9d0f", "source": { "type": "kubernetes", "host_id": "node-a", "cluster_id": "3f2a9c1e-7b6d-4e5f-9a8b-0c1d2e3f4a5b", "namespace": "kubemq", "pod": "messaging-0", "version": "x.y.z", "image_digest": "sha256:EXAMPLE_DIGEST" }, "cursor": { "from": "2026-09-19T12:00:00Z", "to": "2026-09-19T12:15:00Z" }, "totals": { "messages": 123456789, "volume_bytes": 987654321 }, "activity": null } ``` | Field | What it is | | -------------------------- | --------------------------------------------------------------------------------------------------------------------- | | `license_id` | Your license's public ID. | | `fingerprint` | The installation's identity, as above. | | `boot_id` | A random ID created when the server process starts. It tells a restart from a continuing run. | | `source` | The source fields above. | | `cursor.from`, `cursor.to` | The time window the report covers, in UTC. | | `totals.messages` | Messages the server has handled since the last confirmed report. | | `totals.volume_bytes` | Bytes of message traffic the server has handled since the last confirmed report. | | `activity` | `"start"` on the first report of a run, `"stop"` when the server shuts down or a license stop ends, `null` otherwise. | Totals are running counts for the whole run, not counts per window, so a missed report loses nothing: the next one carries the full count. Traffic that a run handled but never reported goes into the next run's reports under the same license. Reporting runs in the background and never slows or blocks message traffic. Usage reports cannot be turned off with a trial key or license key. To send nothing, use an offline license file. ## Trial requests [#trial-requests] kmq and the [trial page](https://onboarding.kubemq.io/trial) send the same fields to the same service. kmq's requests carry `User-Agent: kmq-onboarding/1` and, after the first one, the session token the service returned. | Field | Sent when | What it is | | ----------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | | `email` | You request or recover a trial key | Where the verification code and the key go. | | `name`, `company` | You request a trial key | Your name and company. | | `platform` | You request or recover a trial key | `docker` (1 server) or `kubernetes` (3 servers); a recover call always sends `docker`. | | `server_count` | You request a trial key for Kubernetes | The number of servers. | | `consent` | You request or recover a trial key | `true`: you accept the trial terms and the privacy notice (`"consent": true` in the kmq request file); a recover call always sends `false`. | | `code` | You verify | The eight-digit code from the email. | | `key_version` | You claim the key | Which key version kmq saved, so the service knows delivery succeeded. | KubeMQ stores the issued key encrypted, so that the owner of the email address can recover the same key through the trial page or kmq. KubeMQ staff can recover keys for converted or manually issued licenses. ## What is never sent [#what-is-never-sent] | Never sent | Detail | | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | | Message content | No payloads, headers, metadata or tags. | | Names | No channel, queue, client or subscription names. | | Configuration | No configuration values or credentials of yours. A key goes only to activation; renewals and usage reports send back only the signed license KubeMQ issued. | | Breakdowns | No per-channel or per-client counts, only the two totals. | | IP addresses | No request adds an IP address field. On Kubernetes, `host_id` is the node name, which on some clouds contains the node's private IP address. | KubeMQ's service sees the public address each connection comes from. For evaluations it keeps a keyed hash of that address for up to 90 days. ## If usage reports are blocked [#if-usage-reports-are-blocked] Usage reporting is required for an evaluation, a trial key or a license key. If reports stay blocked, the server logs a warning that links to [Troubleshooting](/licensing/troubleshooting#silent-usage), KubeMQ emails the license contact, and eventually KubeMQ stops renewing the license. The server then stops at the time `kmq license` shows under `run_until`. KubeMQ pauses this whenever the cause is an outage at KubeMQ. ## Send nothing: use an offline license file [#send-nothing-use-an-offline-license-file] A server with an offline license file makes no calls to KubeMQ. Offline license files are for Kubernetes clusters: see [Install air-gapped](/deploy/install/air-gapped), and buy one through [Plans compared](/licensing#buy). For one Docker server with no internet access, [contact support](mailto:support@kubemq.io). ## Check what your server reports [#check-what-your-server-reports] `kmq license --detail full -o json` prints the server's full license status and needs the management sign-in. These fields show whether reports get through: | Field | Healthy value | | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `enabled`, in the `usage` block | `true` with a trial key or license key; `false` with an offline license file. | | `last_report_at`, in the `usage` block | Less than 20 minutes ago. | | `last_outcome`, in the `usage` block | `accepted`, or `duplicate` right after a restart. `error` means the report was not accepted; it is retried. `rejected` means KubeMQ refused it, and `never` that none has been sent since the server started. | | `silent` | `false`. `true` means KubeMQ has received no usage reports from this license. | The field tables on this page are the full list: there is no other payload to inspect. ## Retention and privacy [#retention-and-privacy] | Data | Kept for | | ----------------------------------------- | ------------------------------------------------------------------- | | Raw usage reports | 90 days | | Daily totals per license and installation | Kept as the billing record | | Evaluation address hash | Up to 90 days | | Trial request details | As the [privacy notice](https://kubemq.io/privacy-policy-2/) states | An evaluation runs under the [evaluation terms](https://onboarding.kubemq.io/evaluation-terms). KubeMQ handles personal data as its [privacy notice](https://kubemq.io/privacy-policy-2/) states. To ask where KubeMQ stores this data, who can recover a trial key, or to request deletion, email [support@kubemq.io](mailto:support@kubemq.io). ## Related [#related] * [How licensing works](/licensing/how-it-works) * [Plans compared](/licensing) # How licensing works (/licensing/how-it-works) Every KubeMQ server checks its own license, on Docker and Kubernetes. Without a valid license it does not start, and when a license ends it stops. Your data is never deleted. A license belongs to its installation: the Kubernetes cluster, or on Docker the data volume, so keep the volume. ## Online and offline licenses [#online-and-offline-licenses] | Kind | Which licenses | Talks to KubeMQ | Ends | | ------- | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | | Online | The evaluation, trial keys and license keys | Contacts `license.kubemq.io` at first start and while running, and sends usage reports ([Data sent to KubeMQ](/licensing/data-sent)) | At the evaluation, trial or contract end. `kmq license` (kmq is the KubeMQ command-line tool) shows the time under `run_until` | | Offline | An offline license file | Never | On the file's end date | If both are set, the file wins ([Core & Licensing](/configure/reference/core#license)). ## When the server cannot reach KubeMQ [#when-the-server-cannot-reach-kubemq] A server with an online license keeps running while it cannot reach KubeMQ, until the time `kmq license` shows under `run_until`. Restore the connection before then. Meanwhile the server logs a warning ([Troubleshooting](/licensing/troubleshooting#grace-countdown)). The `kmq license` record shows the renewal result under `last_refresh` and may add an entry to `warnings`. An online license's first start must reach KubeMQ. ## When a license ends [#when-a-license-ends] An online license stops renewing at the contract or trial end, and the server stops at `run_until`. An evaluation ends 14 days after it started. An offline license file stops the server on its end date. Renew it first: [Install air-gapped](/deploy/install/air-gapped#renew-before-it-expires). At a stop the server refuses new connections, lets current work finish (5 minutes by default, [Core & Licensing](/configure/reference/core#license)) and exits with code 3. Cluster servers stop at different times. Restarts fail the same way until the license is fixed (`CrashLoopBackOff` on Kubernetes). Messages, accounts and settings stay on the volume. Add a trial key or license key with your install page's **Add your license** step and the server starts on the same data; a new evaluation cannot. Buying before a trial key ends converts the same key; running servers pick up the new plan without a restart. ## Revocation [#revocation] KubeMQ revokes a license only by deliberate action. Missed payments, network silence and extra installations never revoke one. Offline license files cannot be revoked. Notice periods are in the licensing policy ([Plans compared](/licensing#terms-and-policies)). A cluster larger than its license stops by itself ([Troubleshooting](/licensing/troubleshooting#cluster-over-cap)). ## Check license status [#check-license-status] `kmq license` reads the JSON license record from the signed-in server. [Troubleshooting](/licensing/troubleshooting#check-the-license-status) shows how to sign in on each platform. `kmq license --detail full` prints the same record with all available fields for support. Neither command includes the license key or offline license contents. The relevant fields have this shape: ```json title="Relevant fields" { "server_version": "...", "adoption": { "configured_input_sha256": "...", "accepted_input_sha256": "...", "state": "accepted", "durable": true }, "plan": "trial", "mode": "online", "source": "key", "license_expires_at": "...", "lease_expires_at": "...", "run_until": "...", "max_instances": 1, "instances": 1, "last_refresh": { "outcome": "..." }, "over_cap": false, "warnings": [], "stop_cause": null } ``` The server version identifies the running release. The adoption object confirms that the configured license input was accepted and saved on persistent storage; its two hashes must match. The plan, mode, source, expiry, and instance values describe the entitlement and current use. The latest refresh result and warnings show renewal problems. A healthy licensed server has no stop cause, is not over capacity, and has applicable expiry times in the future. Restore online connectivity before `run_until` when the refresh result or warnings report a renewal problem. The command exits with code 0 when the server returns a record. Authentication, connection, timeout, and other command failures use the [kmq CLI exit codes](/operate/kmq-cli#exit-codes). Monitoring must inspect the JSON fields as well as the command exit code, because a returned record can contain warnings or a pending stop. ## Related [#related] * [Plans compared](/licensing) * [Data sent to KubeMQ](/licensing/data-sent) * [Troubleshooting](/licensing/troubleshooting) # Plans compared (/licensing) Every KubeMQ server needs a license. Four kinds exist. This page compares them, says which fits each situation, and links to the install step that adds each one. [How licensing works](/licensing/how-it-works) explains what the server does with them. ## Compare the options [#compare-the-options] | Topic | Evaluation | Trial key | License key | Offline license file | | ----------------------------------------------------------------- | -------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------- | | Best for | Trying KubeMQ on a laptop | Developing on one server, or trying a production-shaped cluster | Production and staging | Sites with no internet access | | Runs on | One Docker server | One Docker server, or one Kubernetes cluster of 3 servers, chosen when you request it. On Kubernetes the key stays with the first cluster it starts on, and KubeMQ issues it on request | Docker or Kubernetes, with the number of servers in your order | Kubernetes, with the number of servers in the file. For one Docker server, [contact support](mailto:support@kubemq.io) | | Lasts | 14 days | 30 days | Your contract term | The end date in the file, up to one year | | Signup | None | Email verification; for Kubernetes, a request to KubeMQ | An order from KubeMQ | An order plus your cluster's ID | | Needs internet | Yes, to start and while running | Yes, to start and while running | Yes, to start and while running | Never | | Sends usage reports ([Data sent to KubeMQ](/licensing/data-sent)) | Yes | Yes | Yes | No | | How to get and apply it | Starts by itself: [Try KubeMQ](/deploy/quickstart) | [Install with kmq](/deploy/install/kmq#add-your-license), [Install with Docker](/deploy/install/docker#add-your-license) or [Install on Kubernetes](/deploy/install/kubernetes#add-your-license) | [Install with kmq](/deploy/install/kmq#add-your-license), [Install with Docker](/deploy/install/docker#add-your-license) or [Install on Kubernetes](/deploy/install/kubernetes#add-your-license) | [Install air-gapped](/deploy/install/air-gapped#request-your-offline-license-file) | What happens when each one ends is on [How licensing works](/licensing/how-it-works#when-a-license-ends). ## Which one fits [#which-one-fits] | Situation | Use | | ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Try KubeMQ on your laptop | The evaluation | | Automated tests and continuous integration | A license key that covers the number of installations your test runs create, or any key with one persistent volume per test host. Never the evaluation, and never a trial key on fresh volumes: each fresh volume counts as a new installation, so the evaluation may be refused, and a one-server trial key warns that it is over its cap from the second run ([Troubleshooting](/licensing/troubleshooting#over-cap)) | | Staging | A license key | | Production | A license key on Kubernetes. Single-server Docker is for development and test only, and kmq, the KubeMQ command-line tool, refuses a production install on Docker | | No internet access | An offline license file on Kubernetes. For one Docker server, [contact support](mailto:support@kubemq.io) | ## Buy [#buy] See [Pricing](https://kubemq.io/product-pricing/) for plans. To buy, or to ask about anything on this page, use [Contact KubeMQ](https://kubemq.io/contact-sales/). Send your request through the contact form with the details below. We reply within one business day. Kubernetes licenses above three servers and offline license files are issued within two business days of agreement. * The license kind: license key or offline license file. A trial key for Kubernetes is a request here too. * The number of servers. * Docker or Kubernetes. * For an offline license file, the cluster ID that [Install air-gapped](/deploy/install/air-gapped#request-your-offline-license-file) has you collect. ### Manage an existing license [#manage-an-existing-license] Email [KubeMQ support](mailto:support@kubemq.io) to: * renew a license key or an offline license file; * replace a key that leaked; * move a license to a new cluster; * retire an installation you no longer run. Apply the new key with the **Replace the license later** step of [Install with kmq](/deploy/install/kmq#replace-the-license-later), [Install with Docker](/deploy/install/docker#replace-the-license-later) or [Install on Kubernetes](/deploy/install/kubernetes#replace-the-license-later). Apply a new offline license file as [Install air-gapped](/deploy/install/air-gapped#renew-before-it-expires) shows. ## Terms and policies [#terms-and-policies] * [Evaluation terms](https://onboarding.kubemq.io/evaluation-terms) * Trial terms * Licensing policy: KubeMQ's commitments, key recovery, data retention and hosting region * [Privacy notice](https://kubemq.io/privacy-policy-2/) * License agreement, for license keys and offline license files. Your order includes the license agreement; ask for it through [Contact KubeMQ](https://kubemq.io/contact-sales/). ## Related [#related] * [How licensing works](/licensing/how-it-works) * [Data sent to KubeMQ](/licensing/data-sent) * [Troubleshooting](/licensing/troubleshooting) * [Choose your path](/deploy) # Troubleshooting (/licensing/troubleshooting) Run `kmq license` first (it needs a signed-in kmq, below), find your symptom, then follow its fix. Refusals, stops and warnings carry `https://docs.kubemq.io/licensing/troubleshooting#`, linking to that entry. Commands use the names from [Install on Kubernetes](/deploy/install/kubernetes). For Kubernetes, replace `kubemq` with your namespace and `messaging` with your cluster name (`kubectl --context YOUR_KUBE_CONTEXT get kubemqclusters.next.kubemq.io -A` lists them). Replace: `YOUR_KUBE_CONTEXT` — your cluster's kubectl context (`kubectl config current-context`). ## Check the license status [#check-the-license-status] `kmq license` needs a signed-in kmq. Try KubeMQ signed you in; if kmq has no saved connection to this server, sign in once. If kmq installed it: ```bash title="Terminal" kmq auth login --installation YOUR_INSTALLATION_ID --username admin ``` Replace: `YOUR_INSTALLATION_ID` — the `installation_id` value that `kmq onboard` or `kmq deploy apply` printed. If you started it with the Docker command: ```bash title="Terminal" kmq auth login --api-address http://127.0.0.1:8080 --context-name kubemq --username admin ``` The login saves a context but does not select it. Select the context before asking for the license: ```bash title="Terminal" kmq context use kubemq ``` Then: ```bash title="Terminal" kmq license ``` `kmq license` returns one JSON record. For a licensed server, check the `adoption` object. Its `state` is `accepted`, its `durable` value is `true`, and the configured and accepted input hashes match. Confirm `plan`, `license_expires_at`, and `run_until`; `stop_cause` must be `null` and `over_cap` must be `false`. For the full record, for support: ```bash title="Terminal" kmq license --detail full ``` If the container is stopped, `kmq license` prints a connection error instead of a license record and exits with code 5. Read its last log lines instead: ```bash title="Terminal" docker logs --tail 50 kubemq ``` kmq reads one server at a time. Open the server's management port and sign in, as in [Install on Kubernetes](/deploy/install/kubernetes#open-the-management-port). Select the context saved for that server: ```bash title="Terminal" kmq context use messaging ``` Then ask: ```bash title="Terminal" kmq license ``` You should see one JSON record for that server. Check the acceptance, plan, expiry, capacity, warning, and stop fields described in [How licensing works](/licensing/how-it-works#check-license-status). For the other servers, stop the port-forward, start it again with `pod/messaging-1` (then `pod/messaging-2`) in place of `pod/messaging-0`, and sign in again with a new `--context-name` (`messaging-1`, `messaging-2`). Then run `kmq license --context messaging-1` (and `--context messaging-2`). All three records must agree on `plan`, `mode`, `license_expires_at`, and `adoption.accepted_input_sha256`. For the whole cluster at once, read the `LicenseInvalid` and `ReplicasOverLicenseCap` conditions the operator sets: ```bash title="Terminal" kubectl --context YOUR_KUBE_CONTEXT -n kubemq describe kubemqclusters.next.kubemq.io messaging ``` Replace: `YOUR_KUBE_CONTEXT` — the kubectl context of your cluster. A server that is not running answers with a connection error instead of a license record. Read its last log lines (use its name; for a pod in `CrashLoopBackOff`, add `--previous`): ```bash title="Terminal" kubectl --context YOUR_KUBE_CONTEXT -n kubemq logs messaging-0 --tail 50 ``` What the license fields mean: [How licensing works](/licensing/how-it-works#check-license-status). ## Exit codes [#exit-codes] The server's exit codes. For `kmq license` codes, see [How licensing works](/licensing/how-it-works#check-license-status). | Code | Meaning | Where to look | | ---- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | | `0` | Clean shutdown. | Nothing to do. | | `1` | Any other failure, including a configuration error such as a `license` block left in an old configuration file. | The first error line in the log. For the `license` block, [Will not start: no license](#no-license-input). | | `3` | A licensing refusal or stop. | The anchor at the end of the last log line. | | `4` | Unsupported deployment: a pod the operator did not create, clustering on Docker, fewer than three servers on Kubernetes, or a server started outside a container. | [Will not start: exit code 4](#unmanaged-kubernetes) | ## Symptoms [#symptoms] **Will not start** | What you see | Cause | Fix | | -------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- | ------------------------------------------------------ | | `#no-license-input`, or a message that no evaluation can start: Kubernetes, existing data, incomplete files, unavailable, already used | No license is set, and no evaluation can start here | [Add a license](#no-license-input) | | `#invalid-signature`, or the cluster condition `LicenseInvalid` | The license cannot be read or is not genuine | [Restore the license](#invalid-signature) | | `#fingerprint-mismatch` | The license belongs to another installation | [Check the installation](#fingerprint-mismatch) | | `#first-boot-bad-request` | The key is malformed | [Re-save the key](#first-boot-bad-request) | | `#first-boot-bad-key` | KubeMQ refused the key | [Check the key](#first-boot-bad-key) | | `#first-boot-unreachable`, or "Signup-free evaluation must reach license.kubemq.io" | The first start could not reach KubeMQ | [Open the connection](#first-boot-unreachable) | | `#cluster-over-cap`, or the conditions `ReplicasOverLicenseCap` and `ReplicasFrozen` | More servers than the license allows | [Match the server count](#cluster-over-cap) | | `#untrusted-kid` at first start | The server release is too old | [Use the latest image](#untrusted-kid) | | `#clock-rollback` | The clock moved back | [Set the clock](#clock-rollback) | | `#store-not-persistent` with exit code 3, or "Cannot save evaluation files" | The data folder cannot be written | [Fix the data folder](#store-not-persistent) | | Exit code 4 | Unsupported deployment | [Use a supported setup](#unmanaged-kubernetes) | | A pod in `CrashLoopBackOff` | The server exits at every start | [Read the run that stopped](#check-the-license-status) | | `kmq license` shows the old `plan`, `license_expires_at`, or `adoption.accepted_input_sha256` after a change | The new license was not accepted | [Check the change](#license-not-accepted) | **Stopped while running** | What you see | Cause | Fix | | -------------------------------------------------------- | -------------------------------------------------------------------- | ------------------------------------------------------------------------------ | | `#lease-and-grace-exhausted`, or a non-null `stop_cause` | The license could not be renewed in time | [Restore renewals](#lease-and-grace-exhausted) | | `#evaluation-expired`, or "This evaluation has finished" | The evaluation ended | [Add a license](#evaluation-expired) | | `#offline-expired` | The offline license file reached its end date | [Apply a new file](#offline-expired) | | `#revoked` | KubeMQ revoked the license | [Contact support](#revoked) | | `#clock-rollback` or `#cluster-over-cap` | See **Will not start** | [Set the clock](#clock-rollback) · [Match the server count](#cluster-over-cap) | | `#clock-skew` | The clock differs from KubeMQ's and the license could not be renewed | [Synchronize the clock](#clock-skew) | | `LicenseInvalid` on Kubernetes | A server stopped or cannot start | [Read its log](#check-the-license-status) | **Warnings** | What you see | Cause | Fix | | ------------------------------------------------------ | ---------------------------------------------- | ------------------------------------------------------- | | `#grace-countdown`, or a renewal warning in `warnings` | The server cannot reach KubeMQ | [Restore the connection](#grace-countdown) | | an expiry warning in `warnings` | 14 days or fewer to the license end | Renew or buy through [Plans compared](/licensing#buy) | | `#lease-refused` | KubeMQ did not renew the license | [Read the expiry](#lease-refused) | | `#revocation-seen` | KubeMQ started to revoke the license | [Contact support](#revocation-seen) | | `#over-cap` | More installations than licensed | [Remove the extras](#over-cap) | | `#silent-usage` | Usage reports are not arriving | [Allow usage reports](#silent-usage) | | `#clock-skew` | The clock differs from KubeMQ's | [Synchronize the clock](#clock-skew) | | `#store-not-persistent` at start | The data folder is not on a volume | [Mount a volume](#store-not-persistent) | | `#missing-kube-system-permission` | The server cannot read the cluster identity | [Grant the permission](#missing-kube-system-permission) | | `#both-key-and-file` | A key and an offline license file are both set | [Remove one](#both-key-and-file) | | `#untrusted-kid` on a running server | The server release is too old | [Use the latest image](#untrusted-kid) | | `#invalid-signature` on a running server | KubeMQ could not verify the license | [Restore the license](#invalid-signature) | | "Your KubeMQ evaluation expires in" | The evaluation is about to end | [Add a license](#evaluation-expired) | ## Will not start: no license [#no-license-input] **What you see:** exit code 3 and one of these lines: ```text title="Server log" license: this installation has an accepted explicit license; restore its configured license input https://docs.kubemq.io/licensing/troubleshooting#no-license-input license: Kubernetes needs a license key. Get a free 30-day trial key (choose Kubernetes, 3 servers) at https://onboarding.kubemq.io/trial. https://docs.kubemq.io/licensing/troubleshooting#no-license-input license: A license key was expected. Set KUBEMQ_LICENSE_KEY. Get a free 30-day trial key at https://onboarding.kubemq.io/trial. https://docs.kubemq.io/licensing/troubleshooting#no-license-input license: The evaluation files are incomplete: the saved key has no installation identity. Set KUBEMQ_LICENSE_KEY with a free 30-day trial key from https://onboarding.kubemq.io/trial to keep your data; preserve the data volume and installation identity. https://docs.kubemq.io/licensing/troubleshooting#no-license-input license: Signup-free evaluation is unavailable. Get a free 30-day trial key at https://onboarding.kubemq.io/trial and set KUBEMQ_LICENSE_KEY. https://docs.kubemq.io/licensing/troubleshooting#no-license-input license: This installation has already used its evaluation. Set KUBEMQ_LICENSE_KEY with a free 30-day trial key from https://onboarding.kubemq.io/trial to keep your data; preserve the data volume and installation identity. https://docs.kubemq.io/licensing/troubleshooting#no-license-input ``` A `license` block in a configuration file exits with code 1: ```text title="Server log" error on load config file: configuration validation error: config source carries a license block (""), which is no longer accepted: licensing is environment-only. Remove it and set KUBEMQ_LICENSE_KEY (online key), or KUBEMQ_LICENSE_FILE / KUBEMQ_LICENSE_DATA (offline file), optionally … See https://docs.kubemq.io/licensing/troubleshooting#no-license-input ``` **Why:** no license is set, and an evaluation starts only once, on a new single Docker server. **Fix:** 1. Add a license: [Install with kmq](/deploy/install/kmq#add-your-license), [Install with Docker](/deploy/install/docker#add-your-license) or [Install on Kubernetes](/deploy/install/kubernetes#add-your-license). 2. If the line names an accepted license, put that license back; an evaluation never restarts here. 3. For a `license` block, delete it, then do step 1 ([Move from legacy KubeMQ](/deploy/upgrade/from-legacy)). ## Will not start: license not genuine or unreadable [#invalid-signature] **What you see:** exit code 3 and one of the first four lines; on a running server, one of the last two: ```text title="Server log" license: cannot read configured offline license file: https://docs.kubemq.io/licensing/troubleshooting#invalid-signature license: offline license file rejected: https://docs.kubemq.io/licensing/troubleshooting#invalid-signature license: license token rejected (expected , source ): https://docs.kubemq.io/licensing/troubleshooting#invalid-signature license: accepted license record is malformed; restore the record from a trusted backup https://docs.kubemq.io/licensing/troubleshooting#invalid-signature "msg":"license refresh refused with an unsigned answer; keeping the cached lease until the grace window ends", … "status":,"code":"invalid_token","run_until":"