public class V1PodSpec extends Object
Constructor and Description |
---|
V1PodSpec() |
Modifier and Type | Method and Description |
---|---|
V1PodSpec |
activeDeadlineSeconds(Long activeDeadlineSeconds) |
V1PodSpec |
addContainersItem(V1Container containersItem) |
V1PodSpec |
addImagePullSecretsItem(V1LocalObjectReference imagePullSecretsItem) |
V1PodSpec |
addInitContainersItem(V1Container initContainersItem) |
V1PodSpec |
addTolerationsItem(V1Toleration tolerationsItem) |
V1PodSpec |
addVolumesItem(V1Volume volumesItem) |
V1PodSpec |
affinity(V1Affinity affinity) |
V1PodSpec |
automountServiceAccountToken(Boolean automountServiceAccountToken) |
V1PodSpec |
containers(List<V1Container> containers) |
V1PodSpec |
dnsPolicy(String dnsPolicy) |
boolean |
equals(Object o) |
Long |
getActiveDeadlineSeconds()
Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers.
|
V1Affinity |
getAffinity()
If specified, the pod's scheduling constraints
|
List<V1Container> |
getContainers()
List of containers belonging to the pod.
|
String |
getDnsPolicy()
Set DNS policy for containers within the pod.
|
String |
getHostname()
Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.
|
List<V1LocalObjectReference> |
getImagePullSecrets()
ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
|
List<V1Container> |
getInitContainers()
List of initialization containers belonging to the pod.
|
String |
getNodeName()
NodeName is a request to schedule this pod onto a specific node.
|
Map<String,String> |
getNodeSelector()
NodeSelector is a selector which must be true for the pod to fit on a node.
|
String |
getRestartPolicy()
Restart policy for all containers within the pod.
|
String |
getSchedulerName()
If specified, the pod will be dispatched by specified scheduler.
|
V1PodSecurityContext |
getSecurityContext()
SecurityContext holds pod-level security attributes and common container settings.
|
String |
getServiceAccount()
DeprecatedServiceAccount is a depreciated alias for ServiceAccountName.
|
String |
getServiceAccountName()
ServiceAccountName is the name of the ServiceAccount to use to run this pod.
|
String |
getSubdomain()
If specified, the fully qualified Pod hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\".
|
Long |
getTerminationGracePeriodSeconds()
Optional duration in seconds the pod needs to terminate gracefully.
|
List<V1Toleration> |
getTolerations()
If specified, the pod's tolerations.
|
List<V1Volume> |
getVolumes()
List of volumes that can be mounted by containers belonging to the pod.
|
int |
hashCode() |
V1PodSpec |
hostIPC(Boolean hostIPC) |
V1PodSpec |
hostname(String hostname) |
V1PodSpec |
hostNetwork(Boolean hostNetwork) |
V1PodSpec |
hostPID(Boolean hostPID) |
V1PodSpec |
imagePullSecrets(List<V1LocalObjectReference> imagePullSecrets) |
V1PodSpec |
initContainers(List<V1Container> initContainers) |
Boolean |
isAutomountServiceAccountToken()
AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
|
Boolean |
isHostIPC()
Use the host's ipc namespace.
|
Boolean |
isHostNetwork()
Host networking requested for this pod.
|
Boolean |
isHostPID()
Use the host's pid namespace.
|
V1PodSpec |
nodeName(String nodeName) |
V1PodSpec |
nodeSelector(Map<String,String> nodeSelector) |
V1PodSpec |
putNodeSelectorItem(String key,
String nodeSelectorItem) |
V1PodSpec |
restartPolicy(String restartPolicy) |
V1PodSpec |
schedulerName(String schedulerName) |
V1PodSpec |
securityContext(V1PodSecurityContext securityContext) |
V1PodSpec |
serviceAccount(String serviceAccount) |
V1PodSpec |
serviceAccountName(String serviceAccountName) |
void |
setActiveDeadlineSeconds(Long activeDeadlineSeconds) |
void |
setAffinity(V1Affinity affinity) |
void |
setAutomountServiceAccountToken(Boolean automountServiceAccountToken) |
void |
setContainers(List<V1Container> containers) |
void |
setDnsPolicy(String dnsPolicy) |
void |
setHostIPC(Boolean hostIPC) |
void |
setHostname(String hostname) |
void |
setHostNetwork(Boolean hostNetwork) |
void |
setHostPID(Boolean hostPID) |
void |
setImagePullSecrets(List<V1LocalObjectReference> imagePullSecrets) |
void |
setInitContainers(List<V1Container> initContainers) |
void |
setNodeName(String nodeName) |
void |
setNodeSelector(Map<String,String> nodeSelector) |
void |
setRestartPolicy(String restartPolicy) |
void |
setSchedulerName(String schedulerName) |
void |
setSecurityContext(V1PodSecurityContext securityContext) |
void |
setServiceAccount(String serviceAccount) |
void |
setServiceAccountName(String serviceAccountName) |
void |
setSubdomain(String subdomain) |
void |
setTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds) |
void |
setTolerations(List<V1Toleration> tolerations) |
void |
setVolumes(List<V1Volume> volumes) |
V1PodSpec |
subdomain(String subdomain) |
V1PodSpec |
terminationGracePeriodSeconds(Long terminationGracePeriodSeconds) |
V1PodSpec |
tolerations(List<V1Toleration> tolerations) |
String |
toString() |
V1PodSpec |
volumes(List<V1Volume> volumes) |
public Long getActiveDeadlineSeconds()
public void setActiveDeadlineSeconds(Long activeDeadlineSeconds)
public V1PodSpec affinity(V1Affinity affinity)
public V1Affinity getAffinity()
public void setAffinity(V1Affinity affinity)
public V1PodSpec automountServiceAccountToken(Boolean automountServiceAccountToken)
public Boolean isAutomountServiceAccountToken()
public void setAutomountServiceAccountToken(Boolean automountServiceAccountToken)
public V1PodSpec containers(List<V1Container> containers)
public V1PodSpec addContainersItem(V1Container containersItem)
public List<V1Container> getContainers()
public void setContainers(List<V1Container> containers)
public String getDnsPolicy()
public void setDnsPolicy(String dnsPolicy)
public Boolean isHostIPC()
public void setHostIPC(Boolean hostIPC)
public Boolean isHostNetwork()
public void setHostNetwork(Boolean hostNetwork)
public Boolean isHostPID()
public void setHostPID(Boolean hostPID)
public String getHostname()
public void setHostname(String hostname)
public V1PodSpec imagePullSecrets(List<V1LocalObjectReference> imagePullSecrets)
public V1PodSpec addImagePullSecretsItem(V1LocalObjectReference imagePullSecretsItem)
public List<V1LocalObjectReference> getImagePullSecrets()
public void setImagePullSecrets(List<V1LocalObjectReference> imagePullSecrets)
public V1PodSpec initContainers(List<V1Container> initContainers)
public V1PodSpec addInitContainersItem(V1Container initContainersItem)
public List<V1Container> getInitContainers()
public void setInitContainers(List<V1Container> initContainers)
public String getNodeName()
public void setNodeName(String nodeName)
public Map<String,String> getNodeSelector()
public String getRestartPolicy()
public void setRestartPolicy(String restartPolicy)
public String getSchedulerName()
public void setSchedulerName(String schedulerName)
public V1PodSpec securityContext(V1PodSecurityContext securityContext)
public V1PodSecurityContext getSecurityContext()
public void setSecurityContext(V1PodSecurityContext securityContext)
public String getServiceAccount()
public void setServiceAccount(String serviceAccount)
public String getServiceAccountName()
public void setServiceAccountName(String serviceAccountName)
public String getSubdomain()
public void setSubdomain(String subdomain)
public V1PodSpec terminationGracePeriodSeconds(Long terminationGracePeriodSeconds)
public Long getTerminationGracePeriodSeconds()
public void setTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds)
public V1PodSpec tolerations(List<V1Toleration> tolerations)
public V1PodSpec addTolerationsItem(V1Toleration tolerationsItem)
public List<V1Toleration> getTolerations()
public void setTolerations(List<V1Toleration> tolerations)
public List<V1Volume> getVolumes()
Copyright © 2017. All rights reserved.