Class ExternalServiceDecorator
java.lang.Object
org.apache.flink.kubernetes.kubeclient.decorators.AbstractKubernetesStepDecorator
org.apache.flink.kubernetes.kubeclient.decorators.ExternalServiceDecorator
- All Implemented Interfaces:
KubernetesStepDecorator
Creates an external Service to expose the rest port of the Flink JobManager(s).
-
Field Summary
Fields inherited from class org.apache.flink.kubernetes.kubeclient.decorators.AbstractKubernetesStepDecorator
logger -
Constructor Summary
ConstructorsConstructorDescriptionExternalServiceDecorator(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 StringgetExternalServiceName(String clusterId) Generate name of the external rest Service.static StringgetNamespacedExternalServiceName(String clusterId, String namespace) Generate namespaced name of the external rest Service by cluster Id, This is used by other project, so do not delete it.Methods inherited from class org.apache.flink.kubernetes.kubeclient.decorators.AbstractKubernetesStepDecorator
decorateFlinkPod
-
Constructor Details
-
ExternalServiceDecorator
-
-
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
-
getExternalServiceName
Generate name of the external rest Service. -
getNamespacedExternalServiceName
Generate namespaced name of the external rest Service by cluster Id, This is used by other project, so do not delete it.
-