Search in sources :

Example 1 with TcpDiscoveryKubernetesIpFinder

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;
}
Also used : IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration) TcpDiscoveryKubernetesIpFinder(org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder) KubernetesConnectionConfiguration(org.apache.ignite.kubernetes.configuration.KubernetesConnectionConfiguration) TcpDiscoverySpi(org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi)

Aggregations

IgniteConfiguration (org.apache.ignite.configuration.IgniteConfiguration)1 KubernetesConnectionConfiguration (org.apache.ignite.kubernetes.configuration.KubernetesConnectionConfiguration)1 TcpDiscoverySpi (org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi)1 TcpDiscoveryKubernetesIpFinder (org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder)1