Hazelcast clustering for OX App Suite middleware in Kubernetes

OX App Suite middleware pods on Kubernetes need Hazelcast to form one cluster. This page explains how discovery works, what the service and properties must provide, and how to secure the traffic between pods.

On this page

Why Hazelcast clustering matters for OX App Suite middleware in Kubernetes

Hazelcast is the mechanism that lets separate middleware pods behave as one cluster. If you are running or planning core-mw pods on Kubernetes, each pod is a separate process with its own memory, and the pods need a shared view of cluster state to coordinate work. Hazelcast provides that membership and data sharing layer. The practical consequence is that Hazelcast is not an optional add-on you can defer until traffic grows. It is part of how the middleware pods find each other from the first deployment, so it belongs in the plan before you scale out or split pods by role.

Kubernetes does not tell a pod which other pods are running nearby, so the middleware needs a way to discover its peers. In this setup that discovery relies on the Hazelcast Kubernetes plugin, which asks the cluster API for the pods behind a designated service. That means the Service object, its label selectors, the namespace, the pod network reachability between middleware pods, and the Hazelcast properties that name the discovery method all have to line up. A mismatch usually shows up as pods that start but never form one cluster, which is hard to diagnose after the fact. Confirm the exact service, property names and discovery settings against the OX App Suite documentation for the release you deploy, because these details change between releases.

Before you build, decide who owns the Hazelcast configuration, how it is versioned with the Helm values, and how you will verify membership after each install, upgrade and node drain. Ask your DeployOpen or internal platform team to confirm which Kubernetes RBAC permissions the discovery plugin needs, because it reads pod information from the API. Also plan how cluster traffic is protected, since the cluster communication carries shared state between pods. The remaining sections cover the discovery setup and the security controls for that traffic, so treat this section as the decision point: if you cannot yet name the discovery service and who will verify membership, resolve that first.

Discovery and configuration options and when each fits

This table compares the three decisions to make before configuring Hazelcast member discovery for the middleware: how members find each other, which Kubernetes service type exposes them and how network settings are defined. Read each row for what the cluster must provide and the deployment size it suits. The main takeaway is that discovery method, service type and network settings depend on each other, so decide them together and confirm the exact requirements for your OX App Suite version with Open-Xchange.

OptionWhat it requires from the clusterWhen it fitsWhat to confirm
Discovery through the Kubernetes APIA service account with a role that lets it read pod or endpoint objects in the middleware namespaceClusters where the team controls RBAC and wants discovery that does not depend on DNS namingThe exact resources and verbs the plugin needs for your middleware image
DNS-based service lookupCluster DNS that resolves the headless service name to individual member addresses, with no extra API permissionsEnvironments where security policy limits API access for workloads, or where DNS is already monitored closelyThat DNS records update as pods restart, scale or fail
Headless serviceA service with no cluster IP, so DNS returns member pod addressesRequired for DNS-based discovery, and useful at any cluster sizeHow member addresses change on restart and how clients reach the service
Regular (ClusterIP) serviceA single virtual IP that load-balances traffic across podsClient access to the middleware, not member discovery between podsThat member discovery does not depend on this service alone
Default network settingsThe plugin's built-in ports and interface selection, with few values to maintainLab and small deployments on a flat pod network without strict network policiesThat defaults match the middleware image and the cluster network layout
Custom network settingsExplicit ports and interface values that match network policies and any service mesh configurationLarge or segmented deployments, or where sidecars or network policies change traffic between membersThat each change is mirrored in network policies and Istio configuration

Setting up Hazelcast discovery for OX App Suite pods

This sequence takes middleware pods from an unconfigured state to a single Hazelcast cluster, confirmed by every pod reporting the same membership. Each step closes with a check you can run before moving on.

  1. Confirm the release and Helm chart version

    Your platform team confirms which OX App Suite v8 release and matching Helm chart they will deploy, and that Helm is at version 3.17.0 or newer, as OX App Suite requirements state. Check the release against the support commitment so you know whether it is a standard release or an LTS release and when support ends. Pin the chart version in your deployment repository so the discovery settings you write later match the chart you install. Done when helm version reports 3.17.0 or newer and the chart version is recorded in your change ticket.

  2. Confirm Kubernetes and Istio support

    Confirm the cluster runs a Kubernetes version within the N-1 or N-2 range that OX App Suite v8 supports, and that the Istio release is one OX App Suite supports, or that you have chosen the basic ingress-nginx option. Ask Open-Xchange or your delivery partner to confirm the exact versions for your release, because the requirements page is the authority for those ranges. Upgrade the cluster first if it is outside the range, following the version skew policy, which requires the API server to be upgraded one minor version at a time. Done when kubectl version output matches the supported range you confirmed in writing.

  3. Create the service and RBAC for pod lookup

    Hazelcast's Kubernetes discovery reads the pod list from the API server, so the middleware pods need a service account with permission to get and list pods in their own namespace. Create a dedicated service account, a Role that grants only get and list on pods and endpoints in that namespace, and a RoleBinding that connects them. Avoid a ClusterRole unless your platform standards require it, since a namespace-scoped role keeps discovery inside the App Suite namespace. Done when kubectl auth can-i list pods --as=system:serviceaccount:<namespace>:<account> -n <namespace> returns yes, and the same check for a different namespace returns no.

  4. Set the discovery properties in chart values

    In the chart values for the core middleware, enable the Hazelcast Kubernetes discovery mode and set the service name, namespace and port the plugin should use, matching the headless service you verified in the previous step. Keep these values in version control next to the chart pin so every environment uses the same settings. Confirm the exact key names against the chart you pinned in the first step, since they are defined by that chart and not by this guide. Done when helm template renders the middleware configuration with the discovery values present and no unresolved placeholders.

  5. Deploy to a lab namespace first

    Install the chart into a lab namespace that mirrors production networking, including the service mesh or ingress path, before any shared environment is touched. Use a namespace separate from production so that a membership problem cannot affect live sessions. Watch the middleware pods start and record any restarts or readiness failures in your runbook. Done when all middleware pods reach the Ready state and kubectl get pods -n <lab-namespace> shows no crash loops.

  6. Verify identical cluster membership across pods

    Open the middleware logs for each pod and look for the Hazelcast startup messages that list discovered members. Every pod should report the same number of members and the same member addresses, which should match the number of middleware replicas you deployed. If one pod reports a smaller membership or a split cluster, check the service account permissions, the service name and the namespace value first. Repeat the check after restarting one pod to confirm it rejoins the existing cluster. Done when every pod logs the same membership and a restarted pod rejoins without manual action.

How middleware pods join one Hazelcast cluster

The flow starts with a middleware pod reading its namespace and service configuration, then asking the Kubernetes API or service DNS for the addresses of its peers. Each pod receives the peer list, opens cluster connections over the pod network, and forms one Hazelcast cluster. Redis and MariaDB sit outside that cluster as separate dependencies, so check each path on its own. The dashed trust boundary marks where pod traffic meets the control plane, which is where RBAC and network policy decide what a pod may read.

Middleware pods discover peers through the control plane, then form one cluster.

Securing Hazelcast cluster communication in Kubernetes

Hazelcast members on Kubernetes need to find each other, and that discovery path is also the easiest place for an unrelated workload to join or observe the cluster. The cards below cover the controls that narrow who can read discovery data, who can reach the member ports, how credentials are stored and who is allowed to change the configuration.

Least-privilege RBAC for discovery

The Hazelcast Kubernetes discovery plugin queries the Kubernetes API to list the pods or endpoints behind its service. Bind a dedicated ServiceAccount to a Role that allows only the get and list verbs on the resources the plugin reads, in the middleware namespace only. Avoid cluster-wide ClusterRoleBindings and do not reuse the default ServiceAccount, which other workloads in the namespace may also hold. Confirm the exact resources and verbs against the plugin version you deploy, because they change between releases.

Network policies for member ports

Hazelcast members open a fixed member port and exchange traffic among pods in the same cluster. Write Kubernetes NetworkPolicy objects that admit ingress on the member port only from pods labeled as core-mw members and from the pods that legitimately call them. Deny all other ingress to those pods by default. Check that your CNI plugin enforces NetworkPolicy, because a policy object the network layer ignores gives no protection.

Member traffic encryption

Hazelcast offers TLS for member-to-member and client connections in its Enterprise and open-source configuration options, depending on the version and edition. Confirm with Open-Xchange which Hazelcast version the middleware image ships and whether it supports transport encryption for the discovery and member channels. If it does, plan certificate issuance, rotation and trust stores before go-live, and document the decision if encryption cannot be enabled.

Credentials in Kubernetes Secrets

Any cluster password, keystore or token Hazelcast needs is stored as a Kubernetes Secret. Secrets are stored unencrypted in etcd by default, so anyone who can read etcd backups or the datastore can read them. Confirm that encryption at rest is enabled on the control plane, restrict get, list and watch on Secrets with RBAC, and consider an external store through the Secrets Store CSI Driver for production credentials.

Secrets good practices

Pod Security Standards for middleware

Run the core-mw pods under the Pod Security Standards level your cluster enforces, usually restricted for workloads like these, with a namespace label that sets enforcement. Disallow privilege escalation, host networking and host path mounts, and drop unneeded Linux capabilities. Check that the Hazelcast pods still start under these settings, since some images expect a writable root filesystem or a specific user ID, and document any exception with its owner.

Pod Security Standards

Auditing discovery configuration changes

The discovery settings, including the service name, namespace and any plugin properties, decide which pods form the cluster. Changes to the ConfigMap, Helm values or the RBAC bindings behind them should be restricted to a named group and recorded in audit logs. Review who can edit these objects, alert on changes outside the change process, and confirm that the Kubernetes API audit policy captures writes to these resources.

Operating Hazelcast membership after go-live

The first day-two check is whether every middleware pod is still a member of the same Hazelcast cluster. Discovery succeeds at deployment, but membership can drift after a node drain, a rolling restart or a network change that splits the pods into two groups. Ask your team to record the expected member count for each middleware role, then compare it against the cluster's reported membership after every planned change. Logs should show members joining and leaving in the expected order. Repeated join attempts, a member that never completes joining, or two groups that each claim to be the master are split-brain signals and should be treated as incidents, not as noise to clear.

Review the middleware logs after each node drain, Kubernetes minor upgrade or Istio upgrade, and retest discovery once the change settles. The Kubernetes service that the Hazelcast Kubernetes plugin queries, and the pod labels it matches, can change when charts are upgraded, so confirm that discovery still resolves the same pods before you consider the change finished. If Istio sits in front of the cluster traffic, confirm that the sidecar or mesh policy still allows the Hazelcast port between pods, since a policy change can break member traffic without touching the pods themselves. Your team should write this retest into the upgrade runbook and confirm the exact checks with Open-Xchange for your release.

Keep every Hazelcast-related setting, including the discovery service name, the plugin properties, the port and any TLS or cluster-name settings, in version control next to the Helm values for OX App Suite. Changes should go through the same review and deployment path as the rest of the platform, so you can see which setting changed when membership behaves differently. For health probes, metrics and logging of the middleware, follow the operations and monitoring guidance in the App Suite 8 Operations Guide and confirm which signals it exposes for your version before you build alerts on them.

Questions teams ask about Hazelcast clustering for OX App Suite

What does Hazelcast clustering work cost and what drives the price?

The cost is mostly the time of the people doing the work, so it follows the scope of the cluster and the review around it. Your internal platform and middleware engineers are paid for their time, and a partner is paid against a written scope. The main drivers are the number of middleware pods that must join one cluster, how many OX App Suite pod roles are split out, the Kubernetes distribution and its network policy model, the depth of the security review of cluster traffic, and whether a lab is built first to prove discovery works. Ask any quote to list each of these as a separate line, and to state which items are one-time (initial configuration and testing) and which recur (upgrades, rotation and retesting after changes).

How long does it take to get Hazelcast working in Kubernetes?

Duration depends on how much of the environment is already settled. A team with a working OX App Suite 8 cluster, agreed network policy and a lab that mirrors production will move much faster than one still choosing its distribution or Redis setup. The main variables are approval cycles for RBAC and service accounts, the time to create the headless service and network policies, the number of test rounds needed to confirm that members find each other after a pod restart or a rolling upgrade, and whether the cluster communication must be reviewed by a security team before it goes live. Ask any proposal to tie its timeline to named dependencies and to a fixed scope, rather than to a generic number of weeks.

What does our team need to provide before the work starts?

Several parties must provide access and decisions before any configuration can be tested. Expect to provide:

  • Cluster access for the namespace that runs the OX App Suite middleware, with a named administrator who can apply Kubernetes objects
  • Approval for the RBAC role and service account that the Hazelcast Kubernetes discovery needs to read endpoints or pods, reviewed by whoever owns cluster authorization
  • Owners for network policy, who must allow the Hazelcast member traffic between middleware pods and confirm the ports in use
  • A contact for the security review of cluster communication, if your policy requires one
  • Access to a non-production environment for test runs before any change reaches production

Confirm each owner and approval path in writing at the start, because a missing approval is the most common reason discovery stays blocked.

Can our internal platform team set up Hazelcast clustering alone?

Often yes, if the team already operates Kubernetes and has experience with Java middleware. The work involves Kubernetes service discovery, RBAC, network policy and application properties, and each piece is manageable for a team that knows its own cluster. The harder part is verification: proving that members form one cluster, that a failed pod rejoins, and that a rolling upgrade does not split the cluster. Teams without a lab or without anyone who has tested clustered Java services often find this the slowest step. Ask yourself who will run the post-change tests and who will review the security settings, because those tasks recur after every upgrade.

When is it worth bringing in an implementation partner for this work?

A partner is worth considering when the clustering work is blocked by something outside the middleware, such as unclear network policy ownership, an unfamiliar distribution, a security review that needs evidence, or a deadline that leaves no room for trial and error. DeployOpen plans, implements, hardens and documents self-hosted open-source platforms inside the client's own infrastructure, and runs security testing that can cover the resulting setup. Engagements are usually fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. A partner is less useful if the internal team already has a tested pattern and only needs a second review.

What security review should cover Hazelcast cluster traffic?

The review should check who can join the cluster, what can reach the member port, and how the discovery identity is limited. Kubernetes does not encrypt Secrets in etcd by default, so any cluster password or Hazelcast configuration secret needs encryption at rest and least-privilege access. The review should also confirm that network policies allow only the middleware pods to reach each other, and that Pod Security Standards are applied to the namespace. Ask the reviewer to test whether a pod outside the middleware can join the cluster. Map the findings to your own control set, and do not treat a configuration checklist as an audit result.

Why should we test the Hazelcast setup in a lab first?

A lab shows whether discovery works before a change touches production users. Lab testing lets you check the service name, the RBAC binding, the network policy and the middleware properties together, and it lets you simulate a pod restart and a rolling upgrade. The lab does not need to match production capacity, but it should match the distribution, the network policy model and the number of middleware roles you plan to run. Ask for the lab test results as a written record, including the commands run and the members observed, so that the same tests can be repeated after future upgrades.

How DeployOpen scopes and delivers Hazelcast clustering work

DeployOpen approaches Hazelcast clustering for OX App Suite middleware as a scoped piece of infrastructure work inside the client's own Kubernetes environment. We agree the cluster design, the build steps, the verification and the handover in writing before any changes are made to the running platform.

How we scope

  • We confirm the App Suite 8 version, the Kubernetes cluster and the middleware pod roles that will join the Hazelcast cluster.
  • The written scope names the discovery method, the Kubernetes service and the cluster communication controls covered by the work.
  • We list the environments, such as lab, staging and production, and state which ones the engagement will change.

How we build

  • We configure Hazelcast discovery and cluster properties in a non-production environment first, then test membership on the target cluster.
  • We apply network policies, Secret handling and access controls for cluster traffic so the middleware pods only talk to intended peers.
  • We check that pods rejoin the cluster after restarts, rolling updates and node drains, and record the results against the agreed scope.

How we hand over

  • We deliver configuration as version-controlled manifests and Helm values, with a written record of every change made to the cluster.
  • The handover includes runbooks for checking cluster membership, diagnosing split clusters and rotating the credentials used for cluster communication.
  • We walk your platform and security teams through the test results and the open items that remain after delivery.

How we support

  • Engagements are fixed-scope, and the scope, deliverables and timelines are agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer, including retesting after OX App Suite or Kubernetes upgrades.
  • Your team should confirm with DeployOpen which Kubernetes and Istio versions the cluster runs before the scope is finalized.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.