Skip to content

Commit

Permalink
add hazelcast endpoint use
Browse files Browse the repository at this point in the history
  • Loading branch information
semihbkgr committed Oct 9, 2023
1 parent 44eafe5 commit 4ec6def
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docs/modules/ROOT/pages/advanced-networking.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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
```
12 changes: 12 additions & 0 deletions docs/modules/ROOT/pages/connect-outside-kubernetes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,18 @@ hazelcast-sample-2 NodePort 10.219.243.16 <none> 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]
Expand Down

0 comments on commit 4ec6def

Please sign in to comment.