Open abx-firez opened 3 years ago
Please check the related guide: Connect To Hazelcast Running on Kubernetes from Outside.
If it does not work, please add the steps to reproduce without Vertx.
Thank you for your reply. I've checked the guide before. Unfortunately, the guide doesn't seem to fit for my purposes since it is not using the DNS discovery mode. Furthermore I don't want to connect a client from outside, since Hazelcast and it's clients are running in the same Kubernetes cluster. Regarding Vertx: It should not make a big difference here, since it directly uses Hazelcast and - as I described - the verticle is starting correctly. @leszko: Can you please check if my config seems correct for you regardless the Vertx dependencies? Thank you!
@abx-firez As mentioned earlier, please attach the reproducer without Vertx, just Hazelcast. Then, I'll try to have a look.
Hi @abx-firez I just meet same issue... And after checking , i found it maybe need setup the "namespace" (btw the port number also required if you customized) the default namespace is "default" it may cause can not find that "Service"
Hi there, I am facing an issue to get an cluster up and running on Azure Kubernetes Service since I am not able to contact the service from outside. I am using Vert.x 3.9.5 with Hazelcast Kubernetes in version 1.5.1. on Java 11. What I did so far...:
1) Adding dependencies to the pom.xml and created a cluster.xml
cluster.xml:
2) Created a headless service (as described here: https://vertx.io/docs/3.9.6/vertx-hazelcast/java/#_configuring_for_kubernetes)
3) Applied the headless service above to the Kubernetes cluster.
service/service-hazelcast-server ClusterIP None <none> 5701/TCP 3d23h
4) Created a deployment for a client
5) And a service for the client
The client service is deployed correctly and gives me an external ip. Let's assume this external ip is 12.34.56.78 with ports 8787:31236/TCP,5701:31667/TCP. My Dockerfile is exposing port 8787.
I should now be able to call 12.34.56.78:8787/someRessource. But this just gives me a timeout. What am I doing wrong? Is there anything missing or badly configured? I would really appreciate any kind of hint.
Thank you in advance.