Class InternalServiceDecorator
java.lang.Object
org.apache.flink.kubernetes.kubeclient.decorators.AbstractKubernetesStepDecorator
org.apache.flink.kubernetes.kubeclient.decorators.InternalServiceDecorator
- All Implemented Interfaces:
KubernetesStepDecorator
Creates an internal Service which forwards the requests from the TaskManager(s) to the active
JobManager. Note that only the non-HA scenario relies on this Service for internal communication,
since in the HA mode, the TaskManager(s) directly connects to the JobManager via IP address.
-
Field Summary
Fields inherited from class org.apache.flink.kubernetes.kubeclient.decorators.AbstractKubernetesStepDecorator
logger -
Constructor Summary
ConstructorsConstructorDescriptionInternalServiceDecorator(KubernetesJobManagerParameters kubernetesJobManagerParameters) -
Method Summary
Modifier and TypeMethodDescriptionList<io.fabric8.kubernetes.api.model.HasMetadata>Note that the method could have a side effect of modifying the Flink Configuration object, such as update the JobManager address.static StringgetInternalServiceName(String clusterId) Generate name of the internal Service.static StringgetNamespacedInternalServiceName(String clusterId, String namespace) Generate namespaced name of the internal Service.Methods inherited from class org.apache.flink.kubernetes.kubeclient.decorators.AbstractKubernetesStepDecorator
decorateFlinkPod
-
Constructor Details
-
InternalServiceDecorator
-
-
Method Details
-
buildAccompanyingKubernetesResources
public List<io.fabric8.kubernetes.api.model.HasMetadata> buildAccompanyingKubernetesResources() throws IOExceptionDescription copied from class:AbstractKubernetesStepDecoratorNote that the method could have a side effect of modifying the Flink Configuration object, such as update the JobManager address.- Specified by:
buildAccompanyingKubernetesResourcesin interfaceKubernetesStepDecorator- Overrides:
buildAccompanyingKubernetesResourcesin classAbstractKubernetesStepDecorator- Throws:
IOException
-
getInternalServiceName
Generate name of the internal Service. -
getNamespacedInternalServiceName
Generate namespaced name of the internal Service.
-