Skip to content

Commit

Permalink
[CN-822] Update external address outputs with HazelcastEndpoint CR (#138
Browse files Browse the repository at this point in the history
)

* update hazelcast CR output table

* add hazelcast endpoint use
  • Loading branch information
semihbkgr authored Oct 9, 2023
1 parent 52bf2f2 commit a780bf4
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/get-started.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ oc get hazelcast
====

```
NAME STATUS MEMBERS EXTERNAL-ADDRESSES
NAME STATUS MEMBERS
hazelcast-sample Running 3/3
```

Expand Down

0 comments on commit a780bf4

Please sign in to comment.