use of org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder in project ignite by apache.
the class KubernetesDiscoveryAbstractTest method getConfiguration.
/**
*/
protected IgniteConfiguration getConfiguration(String instanceName, Boolean clientMode) throws Exception {
IgniteConfiguration cfg = getConfiguration();
KubernetesConnectionConfiguration kccfg = prepareConfiguration();
TcpDiscoveryKubernetesIpFinder ipFinder = new TcpDiscoveryKubernetesIpFinder(kccfg);
TcpDiscoverySpi discoverySpi = new TcpDiscoverySpi();
discoverySpi.setIpFinder(ipFinder);
cfg.setDiscoverySpi(discoverySpi);
cfg.setGridLogger(log);
cfg.setIgniteInstanceName(instanceName);
cfg.setClientMode(clientMode);
return cfg;
}
Aggregations