@Generated(value="jsii-pacmak/1.13.0 (build 385c325)", date="2020-10-21T06:58:44.647Z") @Stability(value=Experimental) public class Container extends software.amazon.jsii.JsiiObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Container.Builder
(experimental) A fluent builder for
Container. |
| Modifier | Constructor and Description |
|---|---|
|
Container(ContainerProps props) |
protected |
Container(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Container(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEnv(String name,
EnvValue value)
(experimental) Add an environment value to the container.
|
List<String> |
getArgs()
(experimental) Arguments to the entrypoint.
|
List<String> |
getCommand()
(experimental) Entrypoint array (the command to execute when the container starts).
|
Map<String,EnvValue> |
getEnv()
(experimental) The environment variables for this container.
|
String |
getImage()
(experimental) The container image.
|
ImagePullPolicy |
getImagePullPolicy()
(experimental) Image pull policy for this container.
|
List<VolumeMount> |
getMounts()
(experimental) Volume mounts configured for this container.
|
String |
getName()
(experimental) The name of the container.
|
Number |
getPort()
(experimental) The port this container exposes.
|
String |
getWorkingDir()
(experimental) The working directory inside the container.
|
void |
mount(String path,
Volume volume)
(experimental) Mount a volume to a specific path so that it is accessible by the container.
|
void |
mount(String path,
Volume volume,
MountOptions options)
(experimental) Mount a volume to a specific path so that it is accessible by the container.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSetprotected Container(software.amazon.jsii.JsiiObjectRef objRef)
protected Container(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Container(@NotNull
ContainerProps props)
props - This parameter is required.@Stability(value=Experimental)
public void addEnv(@NotNull
String name,
@NotNull
EnvValue value)
The variable value can come from various dynamic sources such a secrets of config maps.
name - - The variable name. This parameter is required.value - - The variable value. This parameter is required.EnvValue.fromXXX@Stability(value=Experimental)
public void mount(@NotNull
String path,
@NotNull
Volume volume,
@Nullable
MountOptions options)
Every pod that is configured to use this container will autmoatically have access to the volume.
path - - The desired path in the container. This parameter is required.volume - - The volume to mount. This parameter is required.options - @Stability(value=Experimental)
public void mount(@NotNull
String path,
@NotNull
Volume volume)
Every pod that is configured to use this container will autmoatically have access to the volume.
path - - The desired path in the container. This parameter is required.volume - - The volume to mount. This parameter is required.@Stability(value=Experimental) @NotNull public Map<String,EnvValue> getEnv()
Returns a copy. To add environment variables use addEnv().
@Stability(value=Experimental) @NotNull public String getImage()
@Stability(value=Experimental) @NotNull public ImagePullPolicy getImagePullPolicy()
@Stability(value=Experimental) @NotNull public List<VolumeMount> getMounts()
@Stability(value=Experimental) @NotNull public String getName()
@Stability(value=Experimental) @Nullable public List<String> getArgs()
@Stability(value=Experimental) @Nullable public List<String> getCommand()
@Stability(value=Experimental) @Nullable public Number getPort()
@Stability(value=Experimental) @Nullable public String getWorkingDir()
Copyright © 2020. All rights reserved.