Red Hat details KUBE_PING discovery for JBoss EAP clusters on OpenShift
The new guide explains direct Kubernetes API discovery, required pod-view permissions and the different provisioning paths for EAP 7 and EAP 8.
Red Hat has published a detailed deployment and troubleshooting guide for running clustered JBoss Enterprise Application Platform applications on OpenShift with the JGroups KUBE_PING discovery protocol.
Unlike DNS-based discovery, KUBE_PING queries the Kubernetes API for pod addresses and filters the results by namespace and labels before cluster members establish TCP connections. That removes the need for a dedicated headless service for discovery, but introduces an important operational requirement: the deployment’s service account must be able to view pods in the target namespace. Red Hat’s guide walks through that configuration for JBoss EAP 7 and EAP 8.
Discovery depends on labels and RBAC
The core settings are the JGroups protocol, the OpenShift namespace and the labels that identify eligible application pods. Red Hat’s examples set JGROUPS_PING_PROTOCOL to kubernetes.KUBE_PING, then provide KUBERNETES_NAMESPACE and KUBERNETES_LABELS so the protocol can query the API and limit its peer set.
Because those queries read pod metadata, a deployment without the necessary Role and RoleBinding will fail discovery even when the JGroups stack itself is valid. Red Hat notes that the JBoss EAP operator can inject the required environment variables and RBAC rules automatically.
The guide also distinguishes between preventing pods from finding one another and disabling clustering altogether. Pointing discovery at an arbitrary namespace may stop membership formation, but it does not remove the clustering subsystem. For EAP 7, the clustering configuration must be removed from standalone-openshift.xml; for EAP 8, the clustering layer should be excluded when provisioning the runtime with Galleon.
EAP 7 and EAP 8 take different paths
The version differences are easy to miss. EAP 7 container images include clustering capabilities by default, while EAP 8 images are provisioned with the subsystems an application needs. Red Hat’s EAP 8 demonstration uses Helm and Galleon, then shows the additional changes required to replace the chart’s DNS-based default with KUBE_PING.
The article also documents protocol naming changes: the older openshift.KUBE_PING form was replaced by kubernetes.KUBE_PING, supported from EAP 7.4 onward. The underlying JGroups Kubernetes plugin performs the API query and peer filtering.
What platform teams should check
For teams migrating old EAP templates or standardizing EAP 8 Helm deployments, the practical checklist is short: confirm the protocol name, namespace and labels; verify pod-view RBAC for the service account; ensure the TCP ports used by JGroups are reachable; and decide whether clustering belongs in the provisioned runtime at all.
Red Hat’s guide is especially useful as a diagnostic reference because it connects those application settings to the OpenShift permissions that make API-based discovery work.
sources
- JBoss EAP clustering in OpenShift: KUBE_PING discoverydevelopers.redhat.com
- JGroups Kubernetes discovery protocolgithub.com
comments · 0