public abstract class AbstractKubernetesParameters extends Object implements KubernetesParameters
KubernetesParameters
.Modifier and Type | Field and Description |
---|---|
protected Configuration |
flinkConfig |
Constructor and Description |
---|
AbstractKubernetesParameters(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 config.yaml, log4j.properties, and the logback.xml.
|
Configuration |
getFlinkConfiguration() |
Optional<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.
|
boolean |
isHostNetworkEnabled() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnnotations, getEnvironments, getLabels, getNodeSelector, getSelectors, getTolerations
protected final Configuration flinkConfig
public AbstractKubernetesParameters(Configuration flinkConfig)
public Configuration getFlinkConfiguration()
public String getConfigDirectory()
getConfigDirectory
in interface KubernetesParameters
public String getClusterId()
getClusterId
in interface KubernetesParameters
public String getNamespace()
getNamespace
in interface KubernetesParameters
public String getImage()
getImage
in interface KubernetesParameters
public KubernetesConfigOptions.ImagePullPolicy getImagePullPolicy()
getImagePullPolicy
in interface KubernetesParameters
public io.fabric8.kubernetes.api.model.LocalObjectReference[] getImagePullSecrets()
getImagePullSecrets
in interface KubernetesParameters
public Map<String,String> getCommonLabels()
KubernetesParameters
getCommonLabels
in interface KubernetesParameters
public String getFlinkConfDirInPod()
KubernetesParameters
getFlinkConfDirInPod
in interface KubernetesParameters
public Optional<String> getFlinkLogDirInPod()
KubernetesParameters
getFlinkLogDirInPod
in interface KubernetesParameters
public String getContainerEntrypoint()
KubernetesParameters
getContainerEntrypoint
in interface KubernetesParameters
public boolean hasLogback()
KubernetesParameters
hasLogback
in interface KubernetesParameters
public boolean hasLog4j()
KubernetesParameters
hasLog4j
in interface KubernetesParameters
public Optional<String> getExistingHadoopConfigurationConfigMap()
KubernetesParameters
getExistingHadoopConfigurationConfigMap
in interface KubernetesParameters
public Optional<String> getLocalHadoopConfigurationDirectory()
KubernetesParameters
getLocalHadoopConfigurationDirectory
in interface KubernetesParameters
public Map<String,String> getSecretNamesToMountPaths()
KubernetesParameters
getSecretNamesToMountPaths
in interface KubernetesParameters
public List<Map<String,String>> getEnvironmentsFromSecrets()
KubernetesParameters
getEnvironmentsFromSecrets
in interface KubernetesParameters
public boolean isHostNetworkEnabled()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.