Class ContainerOpts.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus24.ContainerOpts.Jsii$Proxy
-
- All Implemented Interfaces:
ContainerOpts
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- ContainerOpts
@Stability(Stable) @Internal public static final class ContainerOpts.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ContainerOpts
An implementation forContainerOpts
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.ContainerOpts
ContainerOpts.Builder, ContainerOpts.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Jsii$Proxy(ContainerOpts.Builder builder)
Constructor that initializes the object based on literal property values passed by theContainerOpts.Builder
.protected
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode
$jsii$toJson()
boolean
equals(Object o)
List<String>
getArgs()
Arguments to the entrypoint.List<String>
getCommand()
Entrypoint array.List<EnvFrom>
getEnvFrom()
List of sources to populate environment variables in the container.Map<String,EnvValue>
getEnvVariables()
Environment variables to set in the container.ImagePullPolicy
getImagePullPolicy()
Image pull policy for this container.ContainerLifecycle
getLifecycle()
Describes actions that the management system should take in response to container lifecycle events.Probe
getLiveness()
Periodic probe of container liveness.String
getName()
Name of the container specified as a DNS_LABEL.Number
getPort()
Number
getPortNumber()
Number of port to expose on the pod's IP address.List<ContainerPort>
getPorts()
List of ports to expose from this container.Probe
getReadiness()
Determines when the container is ready to serve traffic.ContainerResources
getResources()
Compute resources (CPU and memory requests and limits) required by the container.ContainerSecurityContextProps
getSecurityContext()
SecurityContext defines the security options the container should be run with.Probe
getStartup()
StartupProbe indicates that the Pod has successfully initialized.List<VolumeMount>
getVolumeMounts()
Pod volumes to mount into the container's filesystem.String
getWorkingDir()
Container's working directory.int
hashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(ContainerOpts.Builder builder)
Constructor that initializes the object based on literal property values passed by theContainerOpts.Builder
.
-
-
Method Detail
-
getArgs
public final List<String> getArgs()
Description copied from interface:ContainerOpts
Arguments to the entrypoint. The docker image's CMD is used ifcommand
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.
Default: []
- Specified by:
getArgs
in interfaceContainerOpts
- See Also:
- https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
-
getCommand
public final List<String> getCommand()
Description copied from interface:ContainerOpts
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-shell
Default: - The docker image's ENTRYPOINT.
- Specified by:
getCommand
in interfaceContainerOpts
-
getEnvFrom
public final List<EnvFrom> getEnvFrom()
Description copied from interface:ContainerOpts
List of sources to populate environment variables in the container.When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by the
envVariables
property with a duplicate key will take precedence.Default: - No sources.
- Specified by:
getEnvFrom
in interfaceContainerOpts
-
getEnvVariables
public final Map<String,EnvValue> getEnvVariables()
Description copied from interface:ContainerOpts
Environment variables to set in the container.Default: - No environment variables.
- Specified by:
getEnvVariables
in interfaceContainerOpts
-
getImagePullPolicy
public final ImagePullPolicy getImagePullPolicy()
Description copied from interface:ContainerOpts
Image pull policy for this container.Default: ImagePullPolicy.ALWAYS
- Specified by:
getImagePullPolicy
in interfaceContainerOpts
-
getLifecycle
public final ContainerLifecycle getLifecycle()
Description copied from interface:ContainerOpts
Describes actions that the management system should take in response to container lifecycle events.- Specified by:
getLifecycle
in interfaceContainerOpts
-
getLiveness
public final Probe getLiveness()
Description copied from interface:ContainerOpts
Periodic probe of container liveness.Container will be restarted if the probe fails.
Default: - no liveness probe is defined
- Specified by:
getLiveness
in interfaceContainerOpts
-
getName
public final String getName()
Description copied from interface:ContainerOpts
Name of the container specified as a DNS_LABEL.Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.
Default: 'main'
- Specified by:
getName
in interfaceContainerOpts
-
getPort
public final Number getPort()
- Specified by:
getPort
in interfaceContainerOpts
-
getPortNumber
public final Number getPortNumber()
Description copied from interface:ContainerOpts
Number of port to expose on the pod's IP address.This must be a valid port number, 0 < x < 65536.
This is a convinience property if all you need a single TCP numbered port. In case more advanced configuartion is required, use the
ports
property.This port is added to the list of ports mentioned in the
ports
property.Default: - Only the ports mentiond in the `ports` property are exposed.
- Specified by:
getPortNumber
in interfaceContainerOpts
-
getPorts
public final List<ContainerPort> getPorts()
Description copied from interface:ContainerOpts
List of ports to expose from this container.Default: - Only the port mentioned in the `portNumber` property is exposed.
- Specified by:
getPorts
in interfaceContainerOpts
-
getReadiness
public final Probe getReadiness()
Description copied from interface:ContainerOpts
Determines when the container is ready to serve traffic.Default: - no readiness probe is defined
- Specified by:
getReadiness
in interfaceContainerOpts
-
getResources
public final ContainerResources getResources()
Description copied from interface:ContainerOpts
Compute resources (CPU and memory requests and limits) required by the container.Default: cpu: request: 1000 millis limit: 1500 millis memory: request: 512 mebibytes limit: 2048 mebibytes
- Specified by:
getResources
in interfaceContainerOpts
- See Also:
- https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
-
getSecurityContext
public final ContainerSecurityContextProps getSecurityContext()
Description copied from interface:ContainerOpts
SecurityContext defines the security options the container should be run with.If set, the fields override equivalent fields of the pod's security context.
Default: ensureNonRoot: true privileged: false readOnlyRootFilesystem: true allowPrivilegeEscalation: false user: 25000 group: 26000
- Specified by:
getSecurityContext
in interfaceContainerOpts
- See Also:
- https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
-
getStartup
public final Probe getStartup()
Description copied from interface:ContainerOpts
StartupProbe indicates that the Pod has successfully initialized.If specified, no other probes are executed until this completes successfully
Default: - If a port is provided, then knocks on that port to determine when the container is ready for readiness and liveness probe checks. Otherwise, no startup probe is defined.
- Specified by:
getStartup
in interfaceContainerOpts
-
getVolumeMounts
public final List<VolumeMount> getVolumeMounts()
Description copied from interface:ContainerOpts
Pod volumes to mount into the container's filesystem.Cannot be updated.
- Specified by:
getVolumeMounts
in interfaceContainerOpts
-
getWorkingDir
public final String getWorkingDir()
Description copied from interface:ContainerOpts
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.
Default: - The container runtime's default.
- Specified by:
getWorkingDir
in interfaceContainerOpts
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
-