From e6f6c8cec4843bfa6e95f4ac294a84eafef976bc Mon Sep 17 00:00:00 2001 From: Semih Buyukgungor Date: Mon, 13 May 2024 17:33:35 +0300 Subject: [PATCH] [CN-1274] Update java and nodejs examples to use public IP in expose externally page (#203) * update java example in expose externally page * configure nodejs client to use public IP --- docs/modules/ROOT/pages/connect-outside-kubernetes.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/modules/ROOT/pages/connect-outside-kubernetes.adoc b/docs/modules/ROOT/pages/connect-outside-kubernetes.adoc index 8a37e07a..5fb87754 100644 --- a/docs/modules/ROOT/pages/connect-outside-kubernetes.adoc +++ b/docs/modules/ROOT/pages/connect-outside-kubernetes.adoc @@ -140,6 +140,7 @@ Java:: ---- ClientConfig config = new ClientConfig(); config.getNetworkConfig().addAddress("35.230.92.217"); +config.getProperties().setProperty(ClientProperty.DISCOVERY_SPI_PUBLIC_IP_ENABLED.toString(), "true"); HazelcastInstance client = HazelcastClient.newHazelcastClient(config); ---- -- @@ -156,6 +157,9 @@ const clientConfig = { clusterMembers: [ '35.230.92.217' ] + }, + properties: { + ['hazelcast.discovery.public.ip.enabled']: true } }; const client = await Client.newHazelcastClient(clientConfig);