Hi,
We are developing microservice application using vertx 3.6. We are deploying the application using kubernetes.
For hazelcast, we use hazelcast-kubernetes package and configuration based on explanation given in the below link,
After deployment, hazelcast is working fine and can able to find all the members in a node. But it fails to find the members
available in another node in the kubernetes cluster.
Can you please help to resolve this issue? It is very urgent for us.
Following is the headless service created for hazelcast,
apiVersion: v1
kind: Service
metadata:
name: cb-hazelcast-service
spec:
selector:
component: cb-hazelcast-service
clusterIP: None
ports:
- name: hz-port-name
port: 5701
protocol: TCP
we attached the component label in all the deployment for microservices and our hazelcast configuration looks as follows,
<?xml version="1.0" encoding="UTF-8"?>
<properties>
<property name="hazelcast.discovery.enabled">true</property>
<property name="hazelcast.rest.enabled">false</property>
</properties>
<network>
<port auto-increment="true" port-count="10000">5701</port>
<outbound-ports>
<ports>0</ports>
</outbound-ports>
<join>
<multicast enabled="false"/>
<tcp-ip enabled="false"/>
<discovery-strategies>
<discovery-strategy enabled="true"
class="com.hazelcast.kubernetes.HazelcastKubernetesDiscoveryStrategy">
<properties>
<property name="service-dns">cb-hazelcast-service</property>
</properties>
</discovery-strategy>
</discovery-strategies>
</join>
</network>
please let me know if any additional information required.