Class AbstractKubernetesParameters
- java.lang.Object
-
- org.apache.flink.kubernetes.kubeclient.parameters.AbstractKubernetesParameters
-
- All Implemented Interfaces:
KubernetesParameters
- Direct Known Subclasses:
KubernetesJobManagerParameters,KubernetesTaskManagerParameters
public abstract class AbstractKubernetesParameters extends Object implements KubernetesParameters
Abstract class for theKubernetesParameters.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.flink.configuration.ConfigurationflinkConfig
-
Constructor Summary
Constructors Constructor Description AbstractKubernetesParameters(org.apache.flink.configuration.Configuration flinkConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClusterId()Map<String,String>getCommonLabels()A common collection of labels that are attached to every created Kubernetes resources.StringgetConfigDirectory()StringgetContainerEntrypoint()The docker entrypoint that starts processes in the container.List<Map<String,String>>getEnvironmentsFromSecrets()A collection of customized environments that are attached to the JobManager and TaskManager container(s).Optional<String>getExistingHadoopConfigurationConfigMap()The existing ConfigMap containing custom Hadoop configuration.StringgetFlinkConfDirInPod()Directory in Pod that stores the config.yaml, log4j.properties, and the logback.xml.org.apache.flink.configuration.ConfigurationgetFlinkConfiguration()Optional<String>getFlinkLogDirInPod()Directory in Pod that saves the log files.StringgetImage()KubernetesConfigOptions.ImagePullPolicygetImagePullPolicy()io.fabric8.kubernetes.api.model.LocalObjectReference[]getImagePullSecrets()Optional<String>getLocalHadoopConfigurationDirectory()The local directory to locate the custom Hadoop configuration.StringgetNamespace()Map<String,String>getSecretNamesToMountPaths()A collection of secret and path pairs that are mounted to the JobManager and TaskManager container(s).booleanhasLog4j()Whether the log4j.properties is located.booleanhasLogback()Whether the logback.xml is located.booleanisHostNetworkEnabled()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.kubernetes.kubeclient.parameters.KubernetesParameters
getAnnotations, getEnvironments, getLabels, getNodeSelector, getSelectors, getTolerations
-
-
-
-
Method Detail
-
getFlinkConfiguration
public org.apache.flink.configuration.Configuration getFlinkConfiguration()
-
getConfigDirectory
public String getConfigDirectory()
- Specified by:
getConfigDirectoryin interfaceKubernetesParameters
-
getClusterId
public String getClusterId()
- Specified by:
getClusterIdin interfaceKubernetesParameters
-
getNamespace
public String getNamespace()
- Specified by:
getNamespacein interfaceKubernetesParameters
-
getImage
public String getImage()
- Specified by:
getImagein interfaceKubernetesParameters
-
getImagePullPolicy
public KubernetesConfigOptions.ImagePullPolicy getImagePullPolicy()
- Specified by:
getImagePullPolicyin interfaceKubernetesParameters
-
getImagePullSecrets
public io.fabric8.kubernetes.api.model.LocalObjectReference[] getImagePullSecrets()
- Specified by:
getImagePullSecretsin interfaceKubernetesParameters
-
getCommonLabels
public Map<String,String> 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
public String getFlinkConfDirInPod()
Description copied from interface:KubernetesParametersDirectory in Pod that stores the config.yaml, log4j.properties, and the logback.xml.- Specified by:
getFlinkConfDirInPodin interfaceKubernetesParameters
-
getFlinkLogDirInPod
public Optional<String> getFlinkLogDirInPod()
Description copied from interface:KubernetesParametersDirectory in Pod that saves the log files.- Specified by:
getFlinkLogDirInPodin interfaceKubernetesParameters
-
getContainerEntrypoint
public String 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
public Optional<String> getExistingHadoopConfigurationConfigMap()
Description copied from interface:KubernetesParametersThe existing ConfigMap containing custom Hadoop configuration.- Specified by:
getExistingHadoopConfigurationConfigMapin interfaceKubernetesParameters
-
getLocalHadoopConfigurationDirectory
public Optional<String> getLocalHadoopConfigurationDirectory()
Description copied from interface:KubernetesParametersThe local directory to locate the custom Hadoop configuration.- Specified by:
getLocalHadoopConfigurationDirectoryin interfaceKubernetesParameters
-
getSecretNamesToMountPaths
public Map<String,String> 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
public List<Map<String,String>> 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()
-
-