Package dev.galasa.kubernetes
Interface IService
- All Superinterfaces:
IResource
Represents a Service resource
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.galasa.kubernetes.IResource
IResource.TYPE
-
Method Summary
Modifier and TypeMethodDescription@NotNull InetSocketAddress
getSocketAddressForPort
(int port) Retrieve a Socket Address of a service NodePort which you can use to access the port from outside the cluster.
-
Method Details
-
getSocketAddressForPort
@NotNull @NotNull InetSocketAddress getSocketAddressForPort(int port) throws KubernetesManagerException Retrieve a Socket Address of a service NodePort which you can use to access the port from outside the cluster.- Parameters:
port
- the nodeport number- Returns:
- A socket address, never null
- Throws:
KubernetesManagerException
- if there is a comms problem to the cluster or the port cannot be found.
-