Class KubernetesJobManagerParameters
- java.lang.Object
-
- org.apache.flink.kubernetes.kubeclient.parameters.AbstractKubernetesParameters
-
- org.apache.flink.kubernetes.kubeclient.parameters.KubernetesJobManagerParameters
-
- All Implemented Interfaces:
KubernetesParameters
public class KubernetesJobManagerParameters extends AbstractKubernetesParameters
A utility class helps parse, verify, and manage the Kubernetes side parameters that are used for constructing the JobManager Pod and all accompanying resources connected to it.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.kubernetes.kubeclient.parameters.AbstractKubernetesParameters
flinkConfig
-
-
Constructor Summary
Constructors Constructor Description KubernetesJobManagerParameters(org.apache.flink.configuration.Configuration flinkConfig, org.apache.flink.client.deployment.ClusterSpecification clusterSpecification)
-
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.intgetBlobServerPort()StringgetEntrypointArgs()StringgetEntrypointClass()Map<String,String>getEnvironments()A collection of customized environments that are attached to the JobManager and TaskManager Container(s).doublegetJobManagerCPU()doublegetJobManagerCPULimitFactor()doublegetJobManagerMemoryLimitFactor()intgetJobManagerMemoryMB()Map<String,String>getLabels()A collection of labels that are attached to the JobManager and TaskManager Pod(s).Map<String,String>getNodeSelector()A collection of node selector to constrain a pod to only be able to run on particular node(s).List<Map<String,String>>getOwnerReference()Optional<File>getPodTemplateFilePath()intgetReplicas()intgetRestBindPort()intgetRestPort()Map<String,String>getRestServiceAnnotations()KubernetesConfigOptions.ServiceExposedTypegetRestServiceExposedType()intgetRPCPort()Map<String,String>getSelectors()A stable subset of labels attached to the resource to select the related resources.StringgetServiceAccount()List<Map<String,String>>getTolerations()A collection of tolerations that are set to the JobManager and TaskManager Pod(s).StringgetUserArtifactsBaseDir()booleanisInternalServiceEnabled()-
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
-
-
-
-
Method Detail
-
getLabels
public Map<String,String> getLabels()
Description copied from interface:KubernetesParametersA collection of labels that are attached to the JobManager and TaskManager Pod(s).
-
getSelectors
public Map<String,String> getSelectors()
Description copied from interface:KubernetesParametersA stable subset of labels attached to the resource to select the related resources.
-
getNodeSelector
public Map<String,String> 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
public Map<String,String> getEnvironments()
Description copied from interface:KubernetesParametersA collection of customized environments that are attached to the JobManager and TaskManager Container(s).
-
getAnnotations
public Map<String,String> getAnnotations()
Description copied from interface:KubernetesParametersA 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: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.
-
getJobManagerMemoryMB
public int getJobManagerMemoryMB()
-
getJobManagerCPU
public double getJobManagerCPU()
-
getJobManagerCPULimitFactor
public double getJobManagerCPULimitFactor()
-
getJobManagerMemoryLimitFactor
public double getJobManagerMemoryLimitFactor()
-
getRestPort
public int getRestPort()
-
getRestBindPort
public int getRestBindPort()
-
getRPCPort
public int getRPCPort()
-
getBlobServerPort
public int getBlobServerPort()
-
getServiceAccount
public String getServiceAccount()
-
getEntrypointClass
public String getEntrypointClass()
-
getRestServiceExposedType
public KubernetesConfigOptions.ServiceExposedType getRestServiceExposedType()
-
isInternalServiceEnabled
public boolean isInternalServiceEnabled()
-
getReplicas
public int getReplicas()
-
getEntrypointArgs
public String getEntrypointArgs()
-
getUserArtifactsBaseDir
public String getUserArtifactsBaseDir()
-
-