public class ServiceUrlUtil extends Object
Constructor and Description |
---|
ServiceUrlUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getServiceURL(io.fabric8.kubernetes.client.KubernetesClient client,
String serviceName,
String serviceNamespace,
String serviceProtocol,
boolean serviceExternal)
Returns the URL to access the service; using the environment variables, routes
or service clusterIP address
|
public static String getServiceURL(io.fabric8.kubernetes.client.KubernetesClient client, String serviceName, String serviceNamespace, String serviceProtocol, boolean serviceExternal)
IllegalArgumentException
- if the URL cannot be found for the serviceName and namespaceCopyright © 2021. All rights reserved.