Class KubernetesTaskManagerParameters
java.lang.Object
org.apache.flink.kubernetes.kubeclient.parameters.AbstractKubernetesParameters
org.apache.flink.kubernetes.kubeclient.parameters.KubernetesTaskManagerParameters
- All Implemented Interfaces:
KubernetesParameters
A utility class helps parse, verify, and manage the Kubernetes side parameters that are used for
constructing the TaskManager Pod.
-
Field Summary
Fields inherited from class org.apache.flink.kubernetes.kubeclient.parameters.AbstractKubernetesParameters
flinkConfig -
Constructor Summary
ConstructorsConstructorDescriptionKubernetesTaskManagerParameters(org.apache.flink.configuration.Configuration flinkConfig, String podName, String dynamicProperties, String jvmMemOptsEnv, org.apache.flink.runtime.clusterframework.ContaineredTaskManagerParameters containeredTaskManagerParameters, Map<String, String> taskManagerExternalResourceConfigKeys, Set<String> blockedNodes) -
Method Summary
Modifier and TypeMethodDescriptionA map of user-specified annotations that are set to the JobManager and TaskManager pods.org.apache.flink.runtime.clusterframework.ContaineredTaskManagerParametersA collection of customized environments that are attached to the JobManager and TaskManager Container(s).A collection of labels that are attached to the JobManager and TaskManager Pod(s).A collection of node selector to constrain a pod to only be able to run on particular node(s).intA stable subset of labels attached to the resource to select the related resources.doubledoubledoubleintA collection of tolerations that are set to the JobManager and TaskManager Pod(s).Methods inherited from class org.apache.flink.kubernetes.kubeclient.parameters.AbstractKubernetesParameters
getClusterId, getCommonLabels, getConfigDirectory, getContainerEntrypoint, getEnvironmentsFromSecrets, getExistingHadoopConfigurationConfigMap, getFlinkConfDirInPod, getFlinkConfiguration, getFlinkLogDirInPod, getImage, getImagePullPolicy, getImagePullSecrets, getLocalHadoopConfigurationDirectory, getNamespace, getSecretNamesToMountPaths, hasLog4j, hasLogback, isHostNetworkEnabled
-
Constructor Details
-
KubernetesTaskManagerParameters
public KubernetesTaskManagerParameters(org.apache.flink.configuration.Configuration flinkConfig, String podName, String dynamicProperties, String jvmMemOptsEnv, org.apache.flink.runtime.clusterframework.ContaineredTaskManagerParameters containeredTaskManagerParameters, Map<String, String> taskManagerExternalResourceConfigKeys, Set<String> blockedNodes)
-
-
Method Details
-
getLabels
Description copied from interface:KubernetesParametersA collection of labels that are attached to the JobManager and TaskManager Pod(s). -
getSelectors
Description copied from interface:KubernetesParametersA stable subset of labels attached to the resource to select the related resources. -
getNodeSelector
Description copied from interface:KubernetesParametersA collection of node selector to constrain a pod to only be able to run on particular node(s). -
getEnvironments
Description copied from interface:KubernetesParametersA collection of customized environments that are attached to the JobManager and TaskManager Container(s). -
getAnnotations
Description copied from interface:KubernetesParametersA map of user-specified annotations that are set to the JobManager and TaskManager pods. -
getTolerations
Description copied from interface:KubernetesParametersA collection of tolerations that are set to the JobManager and TaskManager Pod(s). Kubernetes taints and tolerations work together to ensure that pods are not scheduled onto inappropriate nodes. -
getPodName
-
getTaskManagerMemoryMB
public int getTaskManagerMemoryMB() -
getTaskManagerCPU
public double getTaskManagerCPU() -
getTaskManagerCPULimitFactor
public double getTaskManagerCPULimitFactor() -
getTaskManagerMemoryLimitFactor
public double getTaskManagerMemoryLimitFactor() -
getTaskManagerExternalResources
-
getServiceAccount
-
getTaskManagerExternalResourceConfigKeys
-
getRPCPort
public int getRPCPort() -
getDynamicProperties
-
getJvmMemOptsEnv
-
getContaineredTaskManagerParameters
public org.apache.flink.runtime.clusterframework.ContaineredTaskManagerParameters getContaineredTaskManagerParameters() -
getBlockedNodes
-
getNodeNameLabel
-
getEntrypointArgs
-