public abstract class AbstractKubernetesParameters extends Object implements KubernetesParameters
KubernetesParameters.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.flink.configuration.Configuration |
flinkConfig |
| Constructor and Description |
|---|
AbstractKubernetesParameters(org.apache.flink.configuration.Configuration flinkConfig) |
| Modifier and Type | Method and Description |
|---|---|
String |
getClusterId() |
Map<String,String> |
getCommonLabels()
A common collection of labels that are attached to every created Kubernetes resources.
|
String |
getConfigDirectory() |
String |
getContainerEntrypoint()
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.
|
String |
getFlinkConfDirInPod()
Directory in Pod that stores the flink-conf.yaml, log4j.properties, and the logback.xml.
|
org.apache.flink.configuration.Configuration |
getFlinkConfiguration() |
String |
getFlinkLogDirInPod()
Directory in Pod that saves the log files.
|
String |
getImage() |
KubernetesConfigOptions.ImagePullPolicy |
getImagePullPolicy() |
io.fabric8.kubernetes.api.model.LocalObjectReference[] |
getImagePullSecrets() |
Optional<String> |
getLocalHadoopConfigurationDirectory()
The local directory to locate the custom Hadoop configuration.
|
String |
getNamespace() |
Map<String,String> |
getSecretNamesToMountPaths()
A collection of secret and path pairs that are mounted to the JobManager and TaskManager
container(s).
|
boolean |
hasLog4j()
Whether the log4j.properties is located.
|
boolean |
hasLogback()
Whether the logback.xml is located.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnnotations, getEnvironments, getLabels, getNodeSelector, getTolerationspublic AbstractKubernetesParameters(org.apache.flink.configuration.Configuration flinkConfig)
public org.apache.flink.configuration.Configuration getFlinkConfiguration()
public String getConfigDirectory()
getConfigDirectory in interface KubernetesParameterspublic String getClusterId()
getClusterId in interface KubernetesParameterspublic String getNamespace()
getNamespace in interface KubernetesParameterspublic String getImage()
getImage in interface KubernetesParameterspublic KubernetesConfigOptions.ImagePullPolicy getImagePullPolicy()
getImagePullPolicy in interface KubernetesParameterspublic io.fabric8.kubernetes.api.model.LocalObjectReference[] getImagePullSecrets()
getImagePullSecrets in interface KubernetesParameterspublic Map<String,String> getCommonLabels()
KubernetesParametersgetCommonLabels in interface KubernetesParameterspublic String getFlinkConfDirInPod()
KubernetesParametersgetFlinkConfDirInPod in interface KubernetesParameterspublic String getFlinkLogDirInPod()
KubernetesParametersgetFlinkLogDirInPod in interface KubernetesParameterspublic String getContainerEntrypoint()
KubernetesParametersgetContainerEntrypoint in interface KubernetesParameterspublic boolean hasLogback()
KubernetesParametershasLogback in interface KubernetesParameterspublic boolean hasLog4j()
KubernetesParametershasLog4j in interface KubernetesParameterspublic Optional<String> getExistingHadoopConfigurationConfigMap()
KubernetesParametersgetExistingHadoopConfigurationConfigMap in interface KubernetesParameterspublic Optional<String> getLocalHadoopConfigurationDirectory()
KubernetesParametersgetLocalHadoopConfigurationDirectory in interface KubernetesParameterspublic Map<String,String> getSecretNamesToMountPaths()
KubernetesParametersgetSecretNamesToMountPaths in interface KubernetesParameterspublic List<Map<String,String>> getEnvironmentsFromSecrets()
KubernetesParametersgetEnvironmentsFromSecrets in interface KubernetesParametersCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.