Skip to content

EMQX Operator 3.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 16 Oct 12:28
· 95 commits to main-2.3 since this release
c17de42

This release introduces EMQX CRD v3beta1 with significant changes to cluster management, configuration and improved rolling update experience.

Core Node Rolling Updates

Core nodes now update in-place using a single StatefulSet, eliminating the previous migration-based approach. This provides simpler, more predictable rolling updates, especially for deployments actively using Durable Storage features. This also includes:

  • Faster updates.
  • Much more straightforward volume persistence for core nodes.
  • More controlled resource usage, at the expense of availability dip.
  • Streamlined status conditions.

Note: Core-Replicant clusters now require >1 core nodes.

See also:

Replicant Deployment-Style Rollouts

Replicant sets now use a Deployment-like pattern with:

  • In-place scaling.
  • Familiar maxUnavailable / maxSurge parameters for update cadence versus availability control.
  • More controlled resource usage for updates.
  • Control over node evacuations during migrations.
  • Better HPA compatibility.

See also:

Structured EMQX Configuration

EMQX configuration is now supplied as structured YAML or JSON through spec.config.roots. The
Operator distinguishes runtime-applicable settings from settings that require a restart:

  • Runtime-applicable settings are synchronized through the EMQX Config API.
  • Restart-required settings automatically trigger rolling updates of core and replicant nodes.
  • Dashboard listener changes are rolled out safely without interrupting Operator access to the EMQX API.

See also:

Horizontal Pod Autoscaler Support

The scale subresource is now fully compatible with Kubernetes HPA (autoscaling/v1 and autoscaling/v2 APIs). You can now use HPA to autoscale EMQX Core-Replicant clusters.

See also:

Multi-Namespace Watching

The Operator can now watch a selected set of namespaces. Configure this through the Helm
watchNamespaces value or by specifying the --watch-namespace command-line flag multiple times.

See also:

Unreachable Cluster Nodes

The Operator now recognizes nodes reported as unreachable by EMQX. These nodes remain visible
in status.clusterNodes, including when their role is unknown. The Operator postpones their
removal during scaling and rolling updates until their state can be determined.

See also:

Breaking Changes

  1. No backward compatibility with previous API versions.
  2. No more API keys provisioning through bootstrapAPIKeys mechanism.
  3. No Rebalance CRD support.
  4. spec.config.data and spec.config.mode are replaced by structured spec.config.roots. HOCON-only constructs such as includes, substitutions, and duplicate declarations are not supported.
  5. Custom node.cookie configuration is no longer supported.
  6. status.coreNodes and status.replicantNodes are replaced by a single status.clusterNodes list, with cores and replicants distinguishable by role field. #1274
  7. Operator no longer creates or manages PodDisruptionBudgets. Users must create PDBs explicitly using the workload labels or scale subresource selector.
  8. When replicas is omitted, it now defaults to 1 for core nodes and 0 for replicant nodes instead of 2.
  9. Pod and Service template metadata now supports only labels and annotations.

Fixes & Improvements

  • Test coverage is improved. #1205 #1188
  • Operator now works correctly if limited to a single namespace. #1198
  • CRD field defaults are injected more carefully. #1198
  • Replicant clusters can be scaled cleanly to zero, with consistent CR status throughout the operation. #1237
  • Stopped replicant nodes are left for EMQX to remove automatically instead of being force-left by the Operator. #1216
  • Operator-driven EMQX API and emqx ctl operations select core pods more carefully. #1248
  • Core and replicant Pod templates now support Kubernetes dnsConfig. #1192
  • CRD replica, evacuation, and security-context defaults are more suitable for minimal EMQX deployments. #1235 #1238
  • Added upgrade troubleshooting guidance covering known upgrade issues, their symptoms, and manual recovery steps. #1264
  • Operator memory usage is reduced by restricting the Kubernetes client cache to managed workloads. #1240
  • Operator container images now use Docker Hardened Images. #1273
  • Dependencies with known vulnerabilities are upgraded. #1233 #1273
  • Read-only EMQX API requests now fail over to another eligible core node on connection failures or HTTP 5xx responses. #1263
  • Namespace deletion no longer causes repeated reconciliation errors when Kubernetes rejects resource creation in the terminating namespace. #1266