Interface IService

All Superinterfaces:
IResource

public interface IService extends IResource
Represents a Service resource
  • 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.