code: public Optional<URL> getServiceUrl() {
          Optional<Service> optionalService = client.services().inNamespace(namespace)
              .list().getItems()
              .stream()
              .findFirst();
  
          return optionalService
              .map(this::createUrlForService)
              .orElse(Optional.empty());
      }
docs: Gets the URL of the first service that have been created during the current session.
  
  @return URL of the first service.