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...:
cluster.xml:
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.
Also the log shows that the cluster consists of one member (I added the complete log, just in case...) 2021-03-22 14:50:00.236 INFO 1 --- [ main] com.tsystems.aqm.gateway.Application : Starting Application v0.0.1-SNAPSHOT on api-gateway-deployment-6c95bc56df-qkw4r with PID 1 (/usr/verticles/api-gateway-service-0.0.1-SNAPSHOT.jar started by root in /usr/verticles) 2021-03-22 14:50:00.240 INFO 1 --- [ main] com.tsystems.aqm.gateway.Application : No active profile set, falling back to default profiles: default 2021-03-22 14:50:01.238 INFO 1 --- [ main] com.tsystems.aqm.gateway.Application : Started Application in 1.575 seconds (JVM running for 2.163) 2021-03-22 14:50:01.544 WARN 1 --- [worker-thread-0] c.h.instance.HazelcastInstanceFactory : Hazelcast is starting in a Java modular environment (Java 9 and newer) but without proper access to required Java packages. Use additional Java arguments to provide Hazelcast access to Java internal API. The internal API access is used to get the best performance results. Arguments to be used: --add-modules java.se --add-exports java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.management/sun.management=ALL-UNNAMED --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED 2021-03-22 14:50:01.604 INFO 1 --- [worker-thread-0] com.hazelcast.instance.AddressPicker : [LOCAL] [dev] [3.12.5] Prefer IPv4 stack is true, prefer IPv6 addresses is false 2021-03-22 14:50:01.616 INFO 1 --- [worker-thread-0] com.hazelcast.instance.AddressPicker : [LOCAL] [dev] [3.12.5] Picked [10.244.2.14]:5701, using socket ServerSocket[addr=/0.0.0.0,localport=5701], bind any local is true 2021-03-22 14:50:01.645 INFO 1 --- [worker-thread-0] com.hazelcast.system : [10.244.2.14]:5701 [dev] [3.12.5] Hazelcast 3.12.5 (20191210 - 294ff46) starting at [10.244.2.14]:5701 2021-03-22 14:50:01.645 INFO 1 --- [worker-thread-0] com.hazelcast.system : [10.244.2.14]:5701 [dev] [3.12.5] Copyright (c) 2008-2019, Hazelcast, Inc. All Rights Reserved. 2021-03-22 14:50:01.896 INFO 1 --- [worker-thread-0] c.h.s.i.o.impl.BackpressureRegulator : [10.244.2.14]:5701 [dev] [3.12.5] Backpressure is disabled 2021-03-22 14:50:02.372 INFO 1 --- [worker-thread-0] c.h.s.d.integration.DiscoveryService : [10.244.2.14]:5701 [dev] [3.12.5] Kubernetes Discovery properties: { service-dns: service-hazelcast-server.default.svc.cluster.local, service-dns-timeout: 5, service-name: null, service-port: 0, service-label: null, service-label-value: true, namespace: default, resolve-not-ready-addresses: false, use-node-name-as-external-address: false, kubernetes-api-retries: 3, kubernetes-master: https://kubernetes.default.svc} 2021-03-22 14:50:02.375 INFO 1 --- [worker-thread-0] c.h.s.d.integration.DiscoveryService : [10.244.2.14]:5701 [dev] [3.12.5] Kubernetes Discovery activated with mode: DNS_LOOKUP 2021-03-22 14:50:02.438 INFO 1 --- [worker-thread-0] com.hazelcast.instance.Node : [10.244.2.14]:5701 [dev] [3.12.5] Activating Discovery SPI Joiner 2021-03-22 14:50:02.683 INFO 1 --- [worker-thread-0] c.h.s.i.o.impl.OperationExecutorImpl : [10.244.2.14]:5701 [dev] [3.12.5] Starting 2 partition threads and 3 generic threads (1 dedicated for priority tasks) 2021-03-22 14:50:02.686 INFO 1 --- [worker-thread-0] c.h.internal.diagnostics.Diagnostics : [10.244.2.14]:5701 [dev] [3.12.5] Diagnostics disabled. To enable add -Dhazelcast.diagnostics.enabled=true to the JVM arguments. 2021-03-22 14:50:02.690 INFO 1 --- [worker-thread-0] com.hazelcast.core.LifecycleService : [10.244.2.14]:5701 [dev] [3.12.5] [10.244.2.14]:5701 is STARTING WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.hazelcast.internal.networking.nio.SelectorOptimizer (jar:file:/usr/verticles/api-gateway-service-0.0.1-SNAPSHOT.jar!/BOOT-INF/lib/hazelcast-3.12.5.jar!/) to field sun.nio.ch.SelectorImpl.selectedKeys WARNING: Please consider reporting this to the maintainers of com.hazelcast.internal.networking.nio.SelectorOptimizer WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 2021-03-22 14:50:03.117 WARN 1 --- [worker-thread-0] c.h.s.d.integration.DiscoveryService : [10.244.2.14]:5701 [dev] [3.12.5] Cannot fetch the current zone, ZONE_AWARE feature is disabled 2021-03-22 14:50:08.336 INFO 1 --- [worker-thread-0] c.h.internal.cluster.ClusterService : [10.244.2.14]:5701 [dev] [3.12.5] Members {size:1, ver:1} [ Member [10.244.2.14]:5701 - 2ef9b0fc-6d74-4df9-8c4d-7dc625dd4f76 this ] 2021-03-22 14:50:08.367 INFO 1 --- [worker-thread-0] com.hazelcast.core.LifecycleService : [10.244.2.14]:5701 [dev] [3.12.5] [10.244.2.14]:5701 is STARTED 2021-03-22 14:50:08.734 INFO 1 --- [worker-thread-3] c.h.i.p.impl.PartitionStateManager : [10.244.2.14]:5701 [dev] [3.12.5] Initializing cluster partition table arrangement... 2021-03-22 14:50:09.354 INFO 1 --- [ntloop-thread-0] com.tsystems.aqm.gateway.Application : Rest Controller Verticle started: e91e44bf-e754-40bc-b92b-168f23d11ef4I 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.
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/023cd339-43a1-4112-ae35-ccf48036226cn%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/660c9f36-451f-4287-bde9-62566c5da990n%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/7bcc170c-08df-4b71-ad73-0d2e31ab8453n%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/fce4140b-75e0-41ab-900c-b7c26bf782efn%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/84e5b68b-8055-4bd7-b94b-6e066f9f4eb9n%40googlegroups.com.