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.
  • 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

      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,org.apache.flink.api.common.resources.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 org.apache.flink.runtime.clusterframework.ContaineredTaskManagerParameters getContaineredTaskManagerParameters()
    • getBlockedNodes

      public Set<String> getBlockedNodes()
    • getNodeNameLabel

      public String getNodeNameLabel()
    • getEntrypointArgs

      public String getEntrypointArgs()