Somehow I did it and manconsole shows pods. I had to set ip from hazelcast service. But now... I'm trying to use hazelcast cache with spring and connect it to nodes.
compile 'io.fabric8:kubernetes-api:3.0.8'
but all the time I'm getting
Failed to instantiate [com.hazelcast.core.HazelcastInstance]: Factory method 'hazelcastInstance' threw exception; nested exception is java.lang.NoClassDefFoundError: io/fabric8/kubernetes/client/EditableConfig
Bean with config
@Bean
public Config provideHConfig() {
Config config = new Config();
final NetworkConfig networkConfig = config.getNetworkConfig();
networkConfig.getJoin().getTcpIpConfig().setEnabled(false);
networkConfig.getJoin().getMulticastConfig().setEnabled(false);
DiscoveryConfig discoveryConfig = networkConfig.getJoin().getDiscoveryConfig();
final HazelcastKubernetesDiscoveryStrategyFactory strategyFactory = new HazelcastKubernetesDiscoveryStrategyFactory();
discoveryConfig.addDiscoveryStrategyConfig(new DiscoveryStrategyConfig(strategyFactory));
return config;
}