public static ServiceAddress getServiceAddress(V1Service service) {
		if (service == null) {
			return null;
		}
		ServiceAddress serviceAddress = new ServiceAddress();
		V1LoadBalancerIngress loadBalancerIngress = getLoadBalancer(service);
		if (loadBalancerIngress != null) {
			String host = loadBalancerIngress.getIp() == null ? loadBalancerIngress.getHostname()
					: loadBalancerIngress.getIp();
			serviceAddress.setServiceIP(host);
		}
		List<Integer> ports = getPorts(service);
		serviceAddress.setPorts(ports);

		return serviceAddress;
	}
Utility to process information from {@link V1Service}
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/util/K8sServiceUtil.java