public class ThinClientKubernetesAddressFinder extends Object implements ClientAddressFinder
The implementation is based on a distinct Kubernetes service. The name of the service must be set with
KubernetesConnectionConfiguration
. As for Ignite pods, it's recommended to label them in such a way that
the service will target only server nodes.
The address finder, in its turn, will call this service to retrieve Ignite pods IP addresses. The port is set with value passed to constructor. Make sure that all Ignite pods occupy a similar ClientConnector port, otherwise they will not be able to connect each other using this address finder.
Constructor and Description |
---|
ThinClientKubernetesAddressFinder(KubernetesConnectionConfiguration cfg) |
ThinClientKubernetesAddressFinder(KubernetesConnectionConfiguration cfg,
int port) |
Modifier and Type | Method and Description |
---|---|
String[] |
getAddresses()
Get addresses of Ignite server nodes within a cluster.
|
public ThinClientKubernetesAddressFinder(KubernetesConnectionConfiguration cfg)
public ThinClientKubernetesAddressFinder(KubernetesConnectionConfiguration cfg, int port)
public String[] getAddresses()
ClientConnectorConfiguration.DFLT_PORT
,
ClientConnectorConfiguration.DFLT_PORT_RANGE
.getAddresses
in interface ClientAddressFinder
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024