From a780bf4a71b40f2f9e1b87bfad42503bac573b04 Mon Sep 17 00:00:00 2001 From: Semih Buyukgungor Date: Mon, 9 Oct 2023 14:20:44 +0300 Subject: [PATCH] [CN-822] Update external address outputs with HazelcastEndpoint CR (#138) * update hazelcast CR output table * add hazelcast endpoint use --- .../ROOT/pages/advanced-networking.adoc | 18 +++++++++++++++++- .../ROOT/pages/connect-outside-kubernetes.adoc | 12 ++++++++++++ docs/modules/ROOT/pages/get-started.adoc | 2 +- 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/docs/modules/ROOT/pages/advanced-networking.adoc b/docs/modules/ROOT/pages/advanced-networking.adoc index 95f62d43..8ce4e096 100644 --- a/docs/modules/ROOT/pages/advanced-networking.adoc +++ b/docs/modules/ROOT/pages/advanced-networking.adoc @@ -30,4 +30,20 @@ include::ROOT:example$/advanced-networking-wan.yaml[] Possible values for `serviceType` are: `ClusterIP` and `LoadBalancer`. After applying this example configuration, there will be 1 service created with a type of `LoadBalancer` which exposes 5 ports: `5710`, `5711`, `5712`, `5713`, `5714`. If you don't provide a `serviceType`, it will be set to `LoadBalancer` by default. -NOTE: In case WAN Replication configuration is not provided in `advancedNetwork` configuration, port number `5710` will be configured for WAN Replication by default. \ No newline at end of file +NOTE: In case WAN Replication configuration is not provided in `advancedNetwork` configuration, port number `5710` will be configured for WAN Replication by default. + +You can use the following command to list the external addresses of the WAN endpoints of the cluster. + +[source,shell] +---- +kubectl get hazelcastendpoint --selector="app.kubernetes.io/instance=hazelcast-sample" +---- + +``` +NAME TYPE ADDRESS +hazelcast-sample-istanbul-0 WAN 34.72.248.220:5710 +hazelcast-sample-istanbul-1 WAN 34.72.248.220:5711 +hazelcast-sample-istanbul-2 WAN 34.72.248.220:5712 +hazelcast-sample-istanbul-3 WAN 34.72.248.220:5713 +hazelcast-sample-istanbul-4 WAN 34.72.248.220:5714 +``` diff --git a/docs/modules/ROOT/pages/connect-outside-kubernetes.adoc b/docs/modules/ROOT/pages/connect-outside-kubernetes.adoc index ea28d237..51fd4e20 100644 --- a/docs/modules/ROOT/pages/connect-outside-kubernetes.adoc +++ b/docs/modules/ROOT/pages/connect-outside-kubernetes.adoc @@ -113,6 +113,18 @@ hazelcast-sample-2 NodePort 10.219.243.16 5701:32585/ <1> Discovery service <2> Member access service +The command below allows you to list the external addresses of the cluster. + +[source,shell] +---- +kubectl get hazelcastendpoint --selector="app.kubernetes.io/instance=hazelcast-sample" +---- + +``` +NAME TYPE ADDRESS +hazelcast-sample Discovery 35.230.92.217:5701 +``` + Smart clients can use the external IP of the load balancer to connect to the cluster. [tabs] diff --git a/docs/modules/ROOT/pages/get-started.adoc b/docs/modules/ROOT/pages/get-started.adoc index 35787927..0d6377ba 100644 --- a/docs/modules/ROOT/pages/get-started.adoc +++ b/docs/modules/ROOT/pages/get-started.adoc @@ -244,7 +244,7 @@ oc get hazelcast ==== ``` -NAME STATUS MEMBERS EXTERNAL-ADDRESSES +NAME STATUS MEMBERS hazelcast-sample Running 3/3 ```