@Stability(value=Stable) public static final class ContainerProps.Builder extends Object implements software.amazon.jsii.Builder<ContainerProps>
ContainerProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public ContainerProps.Builder image(String image)
ContainerProps.getImage()image - Docker image name. This parameter is required.this@Stability(value=Stable) public ContainerProps.Builder args(List<String> args)
ContainerProps.getArgs()args - Arguments to the entrypoint. The docker image's CMD is used if `command` is not provided.
Variable references $(VAR_NAME) are expanded using the container's
environment. If a variable cannot be resolved, the reference in the input
string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
regardless of whether the variable exists or not.
Cannot be updated.
this@Stability(value=Stable) public ContainerProps.Builder command(List<String> command)
ContainerProps.getCommand()command - Entrypoint array.
Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment.
If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME).
Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated.
More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shellthis@Stability(value=Stable) public ContainerProps.Builder env(Map<String,? extends EnvValue> env)
ContainerProps.getEnv()env - List of environment variables to set in the container.
Cannot be updated.this@Stability(value=Stable) public ContainerProps.Builder imagePullPolicy(ImagePullPolicy imagePullPolicy)
ContainerProps.getImagePullPolicy()imagePullPolicy - Image pull policy for this container.this@Stability(value=Stable) public ContainerProps.Builder liveness(Probe liveness)
ContainerProps.getLiveness()liveness - Periodic probe of container liveness.
Container will be restarted if the probe fails.this@Stability(value=Stable) public ContainerProps.Builder name(String name)
ContainerProps.getName()name - Name of the container specified as a DNS_LABEL.
Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.this@Stability(value=Stable) public ContainerProps.Builder port(Number port)
ContainerProps.getPort()port - Number of port to expose on the pod's IP address.
This must be a valid port number, 0 < x < 65536.this@Stability(value=Stable) public ContainerProps.Builder readiness(Probe readiness)
ContainerProps.getReadiness()readiness - Determines when the container is ready to serve traffic.this@Stability(value=Stable) public ContainerProps.Builder startup(Probe startup)
ContainerProps.getStartup()startup - StartupProbe indicates that the Pod has successfully initialized.
If specified, no other probes are executed until this completes successfullythis@Stability(value=Stable) public ContainerProps.Builder volumeMounts(List<? extends VolumeMount> volumeMounts)
ContainerProps.getVolumeMounts()volumeMounts - Pod volumes to mount into the container's filesystem.
Cannot be updated.this@Stability(value=Stable) public ContainerProps.Builder workingDir(String workingDir)
ContainerProps.getWorkingDir()workingDir - Container's working directory.
If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.this@Stability(value=Stable) public ContainerProps build()
build in interface software.amazon.jsii.Builder<ContainerProps>ContainerPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.