public class ClusterIPService extends ServiceType
Modifier and Type | Field and Description |
---|---|
static ClusterIPService |
INSTANCE |
Constructor and Description |
---|
ClusterIPService() |
Modifier and Type | Method and Description |
---|---|
io.fabric8.kubernetes.api.model.Service |
buildUpInternalService(KubernetesJobManagerParameters kubernetesJobManagerParameters)
Build up the internal service template, according to the jobManager parameters.
|
Optional<Endpoint> |
getRestEndpoint(io.fabric8.kubernetes.api.model.Service targetService,
io.fabric8.kubernetes.client.NamespacedKubernetesClient internalClient,
KubernetesConfigOptions.NodePortAddressType nodePortAddressType)
Gets the rest endpoint from the kubernetes service.
|
int |
getRestPort(io.fabric8.kubernetes.api.model.ServicePort port)
Gets the rest port from the service port.
|
String |
getType()
Gets the type of the target kubernetes service.
|
buildUpExternalRestService, classify, getRestPortFromExternalService
public static final ClusterIPService INSTANCE
public io.fabric8.kubernetes.api.model.Service buildUpInternalService(KubernetesJobManagerParameters kubernetesJobManagerParameters)
ServiceType
buildUpInternalService
in class ServiceType
kubernetesJobManagerParameters
- the parameters of jobManager.public Optional<Endpoint> getRestEndpoint(io.fabric8.kubernetes.api.model.Service targetService, io.fabric8.kubernetes.client.NamespacedKubernetesClient internalClient, KubernetesConfigOptions.NodePortAddressType nodePortAddressType)
ServiceType
getRestEndpoint
in class ServiceType
targetService
- the target service to retrieve from.internalClient
- the client to interact with api server.nodePortAddressType
- the target address type of the node.public int getRestPort(io.fabric8.kubernetes.api.model.ServicePort port)
ServiceType
getRestPort
in class ServiceType
port
- the target service port.public String getType()
ServiceType
getType
in class ServiceType
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.