Class AbstractKubernetesParameters
java.lang.Object
org.apache.flink.kubernetes.kubeclient.parameters.AbstractKubernetesParameters
- All Implemented Interfaces:
KubernetesParameters
- Direct Known Subclasses:
KubernetesJobManagerParameters,KubernetesTaskManagerParameters
Abstract class for the
KubernetesParameters.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.flink.configuration.Configuration -
Constructor Summary
ConstructorsConstructorDescriptionAbstractKubernetesParameters(org.apache.flink.configuration.Configuration flinkConfig) -
Method Summary
Modifier and TypeMethodDescriptionA common collection of labels that are attached to every created Kubernetes resources.The docker entrypoint that starts processes in the container.A collection of customized environments that are attached to the JobManager and TaskManager container(s).The existing ConfigMap containing custom Hadoop configuration.Directory in Pod that stores the config.yaml, log4j.properties, and the logback.xml.org.apache.flink.configuration.ConfigurationDirectory in Pod that saves the log files.getImage()io.fabric8.kubernetes.api.model.LocalObjectReference[]The local directory to locate the custom Hadoop configuration.A collection of secret and path pairs that are mounted to the JobManager and TaskManager container(s).booleanhasLog4j()Whether the log4j.properties is located.booleanWhether the logback.xml is located.booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.kubernetes.kubeclient.parameters.KubernetesParameters
getAnnotations, getEnvironments, getLabels, getNodeSelector, getSelectors, getTolerations
-
Field Details
-
flinkConfig
protected final org.apache.flink.configuration.Configuration flinkConfig
-
-
Constructor Details
-
AbstractKubernetesParameters
public AbstractKubernetesParameters(org.apache.flink.configuration.Configuration flinkConfig)
-
-
Method Details
-
getFlinkConfiguration
public org.apache.flink.configuration.Configuration getFlinkConfiguration() -
getConfigDirectory
- Specified by:
getConfigDirectoryin interfaceKubernetesParameters
-
getClusterId
- Specified by:
getClusterIdin interfaceKubernetesParameters
-
getNamespace
- Specified by:
getNamespacein interfaceKubernetesParameters
-
getImage
- Specified by:
getImagein interfaceKubernetesParameters
-
getImagePullPolicy
- Specified by:
getImagePullPolicyin interfaceKubernetesParameters
-
getImagePullSecrets
public io.fabric8.kubernetes.api.model.LocalObjectReference[] getImagePullSecrets()- Specified by:
getImagePullSecretsin interfaceKubernetesParameters
-
getCommonLabels
Description copied from interface:KubernetesParametersA common collection of labels that are attached to every created Kubernetes resources. This can include the Deployment, the Pod(s), the ConfigMap(s), and the Service(s), etc.- Specified by:
getCommonLabelsin interfaceKubernetesParameters
-
getFlinkConfDirInPod
Description copied from interface:KubernetesParametersDirectory in Pod that stores the config.yaml, log4j.properties, and the logback.xml.- Specified by:
getFlinkConfDirInPodin interfaceKubernetesParameters
-
getFlinkLogDirInPod
Description copied from interface:KubernetesParametersDirectory in Pod that saves the log files.- Specified by:
getFlinkLogDirInPodin interfaceKubernetesParameters
-
getContainerEntrypoint
Description copied from interface:KubernetesParametersThe docker entrypoint that starts processes in the container.- Specified by:
getContainerEntrypointin interfaceKubernetesParameters
-
hasLogback
public boolean hasLogback()Description copied from interface:KubernetesParametersWhether the logback.xml is located.- Specified by:
hasLogbackin interfaceKubernetesParameters
-
hasLog4j
public boolean hasLog4j()Description copied from interface:KubernetesParametersWhether the log4j.properties is located.- Specified by:
hasLog4jin interfaceKubernetesParameters
-
getExistingHadoopConfigurationConfigMap
Description copied from interface:KubernetesParametersThe existing ConfigMap containing custom Hadoop configuration.- Specified by:
getExistingHadoopConfigurationConfigMapin interfaceKubernetesParameters
-
getLocalHadoopConfigurationDirectory
Description copied from interface:KubernetesParametersThe local directory to locate the custom Hadoop configuration.- Specified by:
getLocalHadoopConfigurationDirectoryin interfaceKubernetesParameters
-
getSecretNamesToMountPaths
Description copied from interface:KubernetesParametersA collection of secret and path pairs that are mounted to the JobManager and TaskManager container(s).- Specified by:
getSecretNamesToMountPathsin interfaceKubernetesParameters
-
getEnvironmentsFromSecrets
Description copied from interface:KubernetesParametersA collection of customized environments that are attached to the JobManager and TaskManager container(s).- Specified by:
getEnvironmentsFromSecretsin interfaceKubernetesParameters
-
isHostNetworkEnabled
public boolean isHostNetworkEnabled()
-