@ConfigurationProperties(prefix="spring.cloud.scheduler.kubernetes") public class KubernetesSchedulerProperties extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_TASK_SERVICE_ACCOUNT_NAME
The default service account name to use for tasks.
|
protected static String |
ENV_KEY_KUBERNETES_NAMESPACE
Name of the environment variable that can define the Kubernetes namespace to use.
|
static String |
KUBERNETES_SCHEDULER_PROPERTIES
Namespace to use for Kubernetes Scheduler properties.
|
| Constructor and Description |
|---|
KubernetesSchedulerProperties() |
| Modifier and Type | Method and Description |
|---|---|
EntryPointStyle |
getEntryPointStyle()
Obtains the
EntryPointStyle to use. |
String[] |
getEnvironmentVariables()
Obtains the environment variables set on all tasks.
|
ImagePullPolicy |
getImagePullPolicy()
Obtains the
ImagePullPolicy to use. |
String |
getImagePullSecret()
Obtains the name of the Secret to use when pulling images.
|
String |
getNamespace()
Obtains the Kubernetes namespace to use.
|
RestartPolicy |
getRestartPolicy()
Obtains the
RestartPolicy to use. |
String |
getTaskServiceAccountName()
Obtains the service account name to use for tasks.
|
void |
setEntryPointStyle(EntryPointStyle entryPointStyle)
Sets the
EntryPointStyle to use. |
void |
setEnvironmentVariables(String[] environmentVariables)
Sets the environment variables to use on all tasks.
|
void |
setImagePullPolicy(ImagePullPolicy imagePullPolicy)
Sets the
ImagePullPolicy to use. |
void |
setImagePullSecret(String imagePullSecret)
Sets the name of the Secret to use when pulling images.
|
void |
setNamespace(String namespace)
Sets the Kubernetes namespace to use.
|
void |
setRestartPolicy(RestartPolicy restartPolicy)
Sets the
RestartPolicy to use. |
void |
setTaskServiceAccountName(String taskServiceAccountName)
Sets the service account name to use for tasks.
|
public static final String KUBERNETES_SCHEDULER_PROPERTIES
protected static final String ENV_KEY_KUBERNETES_NAMESPACE
protected static final String DEFAULT_TASK_SERVICE_ACCOUNT_NAME
public ImagePullPolicy getImagePullPolicy()
ImagePullPolicy to use. Defaults to
imagePullPolicy.ImagePullPolicy to usepublic void setImagePullPolicy(ImagePullPolicy imagePullPolicy)
ImagePullPolicy to use.imagePullPolicy - the ImagePullPolicy to usepublic RestartPolicy getRestartPolicy()
RestartPolicy to use. Defaults to
restartPolicy.RestartPolicy to usepublic void setRestartPolicy(RestartPolicy restartPolicy)
RestartPolicy to use.restartPolicy - the RestartPolicy to usepublic EntryPointStyle getEntryPointStyle()
EntryPointStyle to use. Defaults to
entryPointStyle.EntryPointStyle to usepublic void setEntryPointStyle(EntryPointStyle entryPointStyle)
EntryPointStyle to use.entryPointStyle - the EntryPointStyle to usepublic String getNamespace()
namespace.public void setNamespace(String namespace)
namespace - the Kubernetes namespace to usepublic String getImagePullSecret()
public void setImagePullSecret(String imagePullSecret)
imagePullSecret - the Secret namepublic String getTaskServiceAccountName()
public void setTaskServiceAccountName(String taskServiceAccountName)
taskServiceAccountName - the service account namepublic String[] getEnvironmentVariables()
public void setEnvironmentVariables(String[] environmentVariables)
environmentVariables - the environment variables to setCopyright © 2020 Pivotal Software, Inc.. All rights reserved.