Este conteúdo não está disponível no idioma selecionado.
Chapter 5. Configuring network access
Configure network access for your Data Grid deployment and find out about internal network services.
5.1. Exposing Data Grid clusters on the network Copiar o linkLink copiado para a área de transferência!
Make Data Grid clusters available on the network so you can access Data Grid Console as well as REST and Hot Rod endpoints. By default, the Data Grid chart exposes deployments through a Route but you can configure it to expose clusters via Load Balancer or Node Port. You can also configure the Data Grid chart so that deployments are not exposed on the network and only available internally to the OpenShift cluster.
Procedure
Specify one of the following for the
deploy.expose.typefield:Expand Option Description RouteExposes Data Grid through a route. This is the default value.
LoadBalancerExposes Data Grid through a load balancer service.
NodePortExposes Data Grid through a node port service.
""(empty value)Disables exposing Data Grid on the network.
-
Optionally specify a hostname with the
deploy.expose.hostfield if you expose Data Grid through a route. -
Optionally specify a port with the
deploy.expose.nodePortfield if you expose Data Grid through a node port service. - Install or upgrade your Data Grid Helm release.
5.2. Retrieving network service details Copiar o linkLink copiado para a área de transferência!
Get network service details so you can connect to Data Grid clusters.
Prerequisites
- Expose your Data Grid cluster on the network.
-
Have an
occlient.
Procedure
Use one of the following commands to retrieve network service details:
If you expose Data Grid through a route:
oc get routes
$ oc get routesCopy to Clipboard Copied! Toggle word wrap Toggle overflow If you expose Data Grid through a load balancer or node port service:
oc get services
$ oc get servicesCopy to Clipboard Copied! Toggle word wrap Toggle overflow
5.3. Network services Copiar o linkLink copiado para a área de transferência!
The Data Grid chart creates default network services for internal access.
| Service | Port | Protocol | Description |
|---|---|---|---|
|
|
| TCP | Provides access to Data Grid Hot Rod and REST endpoints. |
|
|
| TCP | Provides access to Data Grid metrics. |
|
|
| TCP | Allows Data Grid pods to discover each other and form clusters. |
You can retrieve details about internal network services as follows:
oc get services
$ oc get services
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S)
infinispan ClusterIP 192.0.2.0 <none> 11222/TCP,11223/TCP
infinispan-ping ClusterIP None <none> 8888/TCP