Class KubernetesTaskManagerParameters
- java.lang.Object
-
- org.apache.flink.kubernetes.kubeclient.parameters.AbstractKubernetesParameters
-
- org.apache.flink.kubernetes.kubeclient.parameters.KubernetesTaskManagerParameters
-
- All Implemented Interfaces:
KubernetesParameters
public class KubernetesTaskManagerParameters extends AbstractKubernetesParameters
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
Constructors Constructor Description KubernetesTaskManagerParameters(Configuration flinkConfig, String podName, String dynamicProperties, String jvmMemOptsEnv, ContaineredTaskManagerParameters containeredTaskManagerParameters, Map<String,String> taskManagerExternalResourceConfigKeys, Set<String> blockedNodes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getAnnotations()
A map of user-specified annotations that are set to the JobManager and TaskManager pods.Set<String>
getBlockedNodes()
ContaineredTaskManagerParameters
getContaineredTaskManagerParameters()
String
getDynamicProperties()
String
getEntrypointArgs()
Map<String,String>
getEnvironments()
A collection of customized environments that are attached to the JobManager and TaskManager Container(s).String
getJvmMemOptsEnv()
Map<String,String>
getLabels()
A collection of labels that are attached to the JobManager and TaskManager Pod(s).String
getNodeNameLabel()
Map<String,String>
getNodeSelector()
A collection of node selector to constrain a pod to only be able to run on particular node(s).String
getPodName()
int
getRPCPort()
Map<String,String>
getSelectors()
A stable subset of labels attached to the resource to select the related resources.String
getServiceAccount()
double
getTaskManagerCPU()
double
getTaskManagerCPULimitFactor()
Map<String,String>
getTaskManagerExternalResourceConfigKeys()
Map<String,ExternalResource>
getTaskManagerExternalResources()
double
getTaskManagerMemoryLimitFactor()
int
getTaskManagerMemoryMB()
List<Map<String,String>>
getTolerations()
A 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 Detail
-
KubernetesTaskManagerParameters
public KubernetesTaskManagerParameters(Configuration flinkConfig, String podName, String dynamicProperties, String jvmMemOptsEnv, ContaineredTaskManagerParameters containeredTaskManagerParameters, Map<String,String> taskManagerExternalResourceConfigKeys, Set<String> blockedNodes)
-
-
Method Detail
-
getLabels
public Map<String,String> getLabels()
Description copied from interface:KubernetesParameters
A collection of labels that are attached to the JobManager and TaskManager Pod(s).
-
getSelectors
public Map<String,String> getSelectors()
Description copied from interface:KubernetesParameters
A stable subset of labels attached to the resource to select the related resources.
-
getNodeSelector
public Map<String,String> getNodeSelector()
Description copied from interface:KubernetesParameters
A collection of node selector to constrain a pod to only be able to run on particular node(s).
-
getEnvironments
public Map<String,String> getEnvironments()
Description copied from interface:KubernetesParameters
A collection of customized environments that are attached to the JobManager and TaskManager Container(s).
-
getAnnotations
public Map<String,String> getAnnotations()
Description copied from interface:KubernetesParameters
A map of user-specified annotations that are set to the JobManager and TaskManager pods.
-
getTolerations
public List<Map<String,String>> getTolerations()
Description copied from interface:KubernetesParameters
A 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
public String getPodName()
-
getTaskManagerMemoryMB
public int getTaskManagerMemoryMB()
-
getTaskManagerCPU
public double getTaskManagerCPU()
-
getTaskManagerCPULimitFactor
public double getTaskManagerCPULimitFactor()
-
getTaskManagerMemoryLimitFactor
public double getTaskManagerMemoryLimitFactor()
-
getTaskManagerExternalResources
public Map<String,ExternalResource> getTaskManagerExternalResources()
-
getServiceAccount
public String getServiceAccount()
-
getTaskManagerExternalResourceConfigKeys
public Map<String,String> getTaskManagerExternalResourceConfigKeys()
-
getRPCPort
public int getRPCPort()
-
getDynamicProperties
public String getDynamicProperties()
-
getJvmMemOptsEnv
public String getJvmMemOptsEnv()
-
getContaineredTaskManagerParameters
public ContaineredTaskManagerParameters getContaineredTaskManagerParameters()
-
getNodeNameLabel
public String getNodeNameLabel()
-
getEntrypointArgs
public String getEntrypointArgs()
-
-