@Generated(value="org.jsonschema2pojo") public class Container extends Object
Constructor and Description |
---|
Container()
No args constructor for use in serialization
|
Container(List<String> args,
List<String> command,
List<EnvVar> env,
String image,
String imagePullPolicy,
Lifecycle lifecycle,
Probe livenessProbe,
String name,
List<ContainerPort> ports,
Probe readinessProbe,
ResourceRequirements resources,
SecurityContext securityContext,
String terminationMessagePath,
List<VolumeMount> volumeMounts,
String workingDir) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAdditionalProperties() |
List<String> |
getArgs()
command array; the docker image's cmd is used if this is not provided; arguments to the entrypoint; cannot be updated; variable references $(VAR_NAME) are expanded using the container's environment variables; if a variable cannot be resolved
|
List<String> |
getCommand()
entrypoint array; not executed within a shell; the docker image's entrypoint is used if this is not provided; cannot be updated; variable references $(VAR_NAME) are expanded using the container's environment variables; if a variable cannot be resolved
|
List<EnvVar> |
getEnv()
list of environment variables to set in the container; cannot be updated
|
String |
getImage()
Docker image name; see http://releases.k8s.io/v1.0.0/docs/images.md
|
String |
getImagePullPolicy()
image pull policy; one of Always
|
Lifecycle |
getLifecycle() |
Probe |
getLivenessProbe() |
String |
getName()
name of the container; must be a DNS_LABEL and unique within the pod; cannot be updated
|
List<ContainerPort> |
getPorts()
list of ports to expose from the container; cannot be updated
|
Probe |
getReadinessProbe() |
ResourceRequirements |
getResources() |
SecurityContext |
getSecurityContext() |
String |
getTerminationMessagePath()
path at which the file to which the container's termination message will be written is mounted into the container's filesystem; message written is intended to be brief final status
|
List<VolumeMount> |
getVolumeMounts()
pod volumes to mount into the container's filesyste; cannot be updated
|
String |
getWorkingDir()
container's working directory; defaults to image's default; cannot be updated
|
void |
setAdditionalProperty(String name,
Object value) |
void |
setArgs(List<String> args)
command array; the docker image's cmd is used if this is not provided; arguments to the entrypoint; cannot be updated; variable references $(VAR_NAME) are expanded using the container's environment variables; if a variable cannot be resolved
|
void |
setCommand(List<String> command)
entrypoint array; not executed within a shell; the docker image's entrypoint is used if this is not provided; cannot be updated; variable references $(VAR_NAME) are expanded using the container's environment variables; if a variable cannot be resolved
|
void |
setEnv(List<EnvVar> env)
list of environment variables to set in the container; cannot be updated
|
void |
setImage(String image)
Docker image name; see http://releases.k8s.io/v1.0.0/docs/images.md
|
void |
setImagePullPolicy(String imagePullPolicy)
image pull policy; one of Always
|
void |
setLifecycle(Lifecycle lifecycle) |
void |
setLivenessProbe(Probe livenessProbe) |
void |
setName(String name)
name of the container; must be a DNS_LABEL and unique within the pod; cannot be updated
|
void |
setPorts(List<ContainerPort> ports)
list of ports to expose from the container; cannot be updated
|
void |
setReadinessProbe(Probe readinessProbe) |
void |
setResources(ResourceRequirements resources) |
void |
setSecurityContext(SecurityContext securityContext) |
void |
setTerminationMessagePath(String terminationMessagePath)
path at which the file to which the container's termination message will be written is mounted into the container's filesystem; message written is intended to be brief final status
|
void |
setVolumeMounts(List<VolumeMount> volumeMounts)
pod volumes to mount into the container's filesyste; cannot be updated
|
void |
setWorkingDir(String workingDir)
container's working directory; defaults to image's default; cannot be updated
|
public Container()
public Container(List<String> args, List<String> command, List<EnvVar> env, String image, String imagePullPolicy, Lifecycle lifecycle, Probe livenessProbe, String name, List<ContainerPort> ports, Probe readinessProbe, ResourceRequirements resources, SecurityContext securityContext, String terminationMessagePath, List<VolumeMount> volumeMounts, String workingDir)
volumeMounts
- resources
- args
- imagePullPolicy
- image
- securityContext
- env
- terminationMessagePath
- readinessProbe
- livenessProbe
- ports
- lifecycle
- name
- command
- workingDir
- public List<String> getArgs()
public void setArgs(List<String> args)
args
- The argspublic List<String> getCommand()
public void setCommand(List<String> command)
command
- The commandpublic List<EnvVar> getEnv()
public void setEnv(List<EnvVar> env)
env
- The envpublic String getImage()
public void setImage(String image)
image
- The imagepublic String getImagePullPolicy()
public void setImagePullPolicy(String imagePullPolicy)
imagePullPolicy
- The imagePullPolicypublic Lifecycle getLifecycle()
public void setLifecycle(Lifecycle lifecycle)
lifecycle
- The lifecyclepublic Probe getLivenessProbe()
public void setLivenessProbe(Probe livenessProbe)
livenessProbe
- The livenessProbepublic String getName()
public void setName(String name)
name
- The namepublic List<ContainerPort> getPorts()
public void setPorts(List<ContainerPort> ports)
ports
- The portspublic Probe getReadinessProbe()
public void setReadinessProbe(Probe readinessProbe)
readinessProbe
- The readinessProbepublic ResourceRequirements getResources()
public void setResources(ResourceRequirements resources)
resources
- The resourcespublic SecurityContext getSecurityContext()
public void setSecurityContext(SecurityContext securityContext)
securityContext
- The securityContextpublic String getTerminationMessagePath()
public void setTerminationMessagePath(String terminationMessagePath)
terminationMessagePath
- The terminationMessagePathpublic List<VolumeMount> getVolumeMounts()
public void setVolumeMounts(List<VolumeMount> volumeMounts)
volumeMounts
- The volumeMountspublic String getWorkingDir()
public void setWorkingDir(String workingDir)
workingDir
- The workingDirCopyright © 2011–2015 Red Hat. All rights reserved.