@Generated(value="org.jsonschema2pojo") public class PodSpec extends Object
Constructor and Description |
---|
PodSpec()
No args constructor for use in serialization
|
PodSpec(Long activeDeadlineSeconds,
List<Container> containers,
String dnsPolicy,
String host,
Boolean hostNetwork,
List<LocalObjectReference> imagePullSecrets,
String nodeName,
Map<String,String> nodeSelector,
String restartPolicy,
String serviceAccount,
String serviceAccountName,
Long terminationGracePeriodSeconds,
List<Volume> volumes) |
Modifier and Type | Method and Description |
---|---|
Long |
getActiveDeadlineSeconds() |
Map<String,Object> |
getAdditionalProperties() |
List<Container> |
getContainers()
list of containers belonging to the pod; cannot be updated; containers cannot currently be added or removed; there must be at least one container in a Pod; see http://releases.k8s.io/v1.0.0/docs/containers.md
|
String |
getDnsPolicy()
DNS policy for containers within the pod; one of 'ClusterFirst' or 'Default'
|
String |
getHost()
deprecated
|
Boolean |
getHostNetwork()
host networking requested for this pod
|
List<LocalObjectReference> |
getImagePullSecrets()
list of references to secrets in the same namespace available for pulling the container images; see http://releases.k8s.io/v1.0.0/docs/images.md#specifying-imagepullsecrets-on-a-pod
|
String |
getNodeName()
node requested for this pod
|
Map<String,String> |
getNodeSelector()
selector which must match a node's labels for the pod to be scheduled on that node; see http://releases.k8s.io/v1.0.0/examples/node-selection/README.md
|
String |
getRestartPolicy()
restart policy for all containers within the pod; one of Always
|
String |
getServiceAccount()
deprecated
|
String |
getServiceAccountName()
name of the ServiceAccount to use to run this pod; see http://releases.k8s.io/v1.0.0/docs/service_accounts.md
|
Long |
getTerminationGracePeriodSeconds()
optional duration in seconds the pod needs to terminate gracefully; may be decreased in delete request; value must be non-negative integer; the value zero indicates delete immediately; if this value is not set
|
List<Volume> |
getVolumes()
list of volumes that can be mounted by containers belonging to the pod; see http://releases.k8s.io/v1.0.0/docs/volumes.md
|
void |
setActiveDeadlineSeconds(Long activeDeadlineSeconds) |
void |
setAdditionalProperty(String name,
Object value) |
void |
setContainers(List<Container> containers)
list of containers belonging to the pod; cannot be updated; containers cannot currently be added or removed; there must be at least one container in a Pod; see http://releases.k8s.io/v1.0.0/docs/containers.md
|
void |
setDnsPolicy(String dnsPolicy)
DNS policy for containers within the pod; one of 'ClusterFirst' or 'Default'
|
void |
setHost(String host)
deprecated
|
void |
setHostNetwork(Boolean hostNetwork)
host networking requested for this pod
|
void |
setImagePullSecrets(List<LocalObjectReference> imagePullSecrets)
list of references to secrets in the same namespace available for pulling the container images; see http://releases.k8s.io/v1.0.0/docs/images.md#specifying-imagepullsecrets-on-a-pod
|
void |
setNodeName(String nodeName)
node requested for this pod
|
void |
setNodeSelector(Map<String,String> nodeSelector)
selector which must match a node's labels for the pod to be scheduled on that node; see http://releases.k8s.io/v1.0.0/examples/node-selection/README.md
|
void |
setRestartPolicy(String restartPolicy)
restart policy for all containers within the pod; one of Always
|
void |
setServiceAccount(String serviceAccount)
deprecated
|
void |
setServiceAccountName(String serviceAccountName)
name of the ServiceAccount to use to run this pod; see http://releases.k8s.io/v1.0.0/docs/service_accounts.md
|
void |
setTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds)
optional duration in seconds the pod needs to terminate gracefully; may be decreased in delete request; value must be non-negative integer; the value zero indicates delete immediately; if this value is not set
|
void |
setVolumes(List<Volume> volumes)
list of volumes that can be mounted by containers belonging to the pod; see http://releases.k8s.io/v1.0.0/docs/volumes.md
|
public PodSpec()
public PodSpec(Long activeDeadlineSeconds, List<Container> containers, String dnsPolicy, String host, Boolean hostNetwork, List<LocalObjectReference> imagePullSecrets, String nodeName, Map<String,String> nodeSelector, String restartPolicy, String serviceAccount, String serviceAccountName, Long terminationGracePeriodSeconds, List<Volume> volumes)
serviceAccountName
- containers
- host
- activeDeadlineSeconds
- hostNetwork
- nodeName
- dnsPolicy
- volumes
- imagePullSecrets
- terminationGracePeriodSeconds
- serviceAccount
- restartPolicy
- nodeSelector
- public Long getActiveDeadlineSeconds()
public void setActiveDeadlineSeconds(Long activeDeadlineSeconds)
activeDeadlineSeconds
- The activeDeadlineSecondspublic List<Container> getContainers()
public void setContainers(List<Container> containers)
containers
- The containerspublic String getDnsPolicy()
public void setDnsPolicy(String dnsPolicy)
dnsPolicy
- The dnsPolicypublic String getHost()
public void setHost(String host)
host
- The hostpublic Boolean getHostNetwork()
public void setHostNetwork(Boolean hostNetwork)
hostNetwork
- The hostNetworkpublic List<LocalObjectReference> getImagePullSecrets()
public void setImagePullSecrets(List<LocalObjectReference> imagePullSecrets)
imagePullSecrets
- The imagePullSecretspublic String getNodeName()
public void setNodeName(String nodeName)
nodeName
- The nodeNamepublic Map<String,String> getNodeSelector()
public void setNodeSelector(Map<String,String> nodeSelector)
nodeSelector
- The nodeSelectorpublic String getRestartPolicy()
public void setRestartPolicy(String restartPolicy)
restartPolicy
- The restartPolicypublic String getServiceAccount()
public void setServiceAccount(String serviceAccount)
serviceAccount
- The serviceAccountpublic String getServiceAccountName()
public void setServiceAccountName(String serviceAccountName)
serviceAccountName
- The serviceAccountNamepublic Long getTerminationGracePeriodSeconds()
public void setTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds)
terminationGracePeriodSeconds
- The terminationGracePeriodSecondspublic List<Volume> getVolumes()
public void setVolumes(List<Volume> volumes)
volumes
- The volumesCopyright © 2011–2015 Red Hat. All rights reserved.