GoogleCloudRunV2ContainerArgs

data class GoogleCloudRunV2ContainerArgs(val args: Output<List<String>>? = null, val command: Output<List<String>>? = null, val dependsOn: Output<List<String>>? = null, val env: Output<List<GoogleCloudRunV2EnvVarArgs>>? = null, val image: Output<String>, val livenessProbe: Output<GoogleCloudRunV2ProbeArgs>? = null, val name: Output<String>? = null, val ports: Output<List<GoogleCloudRunV2ContainerPortArgs>>? = null, val resources: Output<GoogleCloudRunV2ResourceRequirementsArgs>? = null, val startupProbe: Output<GoogleCloudRunV2ProbeArgs>? = null, val volumeMounts: Output<List<GoogleCloudRunV2VolumeMountArgs>>? = null, val workingDir: Output<String>? = null) : ConvertibleToJava<GoogleCloudRunV2ContainerArgs>

A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments may be supplied by the system to the container at runtime.

Constructors

Link copied to clipboard
fun GoogleCloudRunV2ContainerArgs(args: Output<List<String>>? = null, command: Output<List<String>>? = null, dependsOn: Output<List<String>>? = null, env: Output<List<GoogleCloudRunV2EnvVarArgs>>? = null, image: Output<String>, livenessProbe: Output<GoogleCloudRunV2ProbeArgs>? = null, name: Output<String>? = null, ports: Output<List<GoogleCloudRunV2ContainerPortArgs>>? = null, resources: Output<GoogleCloudRunV2ResourceRequirementsArgs>? = null, startupProbe: Output<GoogleCloudRunV2ProbeArgs>? = null, volumeMounts: Output<List<GoogleCloudRunV2VolumeMountArgs>>? = null, workingDir: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): GoogleCloudRunV2ContainerArgs

Properties

Link copied to clipboard
val args: Output<List<String>>? = null

Arguments to the entrypoint. The docker image's CMD is used if this is not provided.

Link copied to clipboard
val command: Output<List<String>>? = null

Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.

Link copied to clipboard
val dependsOn: Output<List<String>>? = null

Container names which must start before this container.

Link copied to clipboard
val env: Output<List<GoogleCloudRunV2EnvVarArgs>>? = null

List of environment variables to set in the container.

Link copied to clipboard
val image: Output<String>

Name of the container image in Dockerhub, Google Artifact Registry, or Google Container Registry. If the host is not provided, Dockerhub is assumed.

Link copied to clipboard

Periodic probe of container liveness. Container will be restarted if the probe fails.

Link copied to clipboard
val name: Output<String>? = null

Name of the container specified as a DNS_LABEL (RFC 1123).

Link copied to clipboard

List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.

Link copied to clipboard

Compute Resource requirements by this container.

Link copied to clipboard

Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails.

Link copied to clipboard

Volume to mount into the container's filesystem.

Link copied to clipboard
val workingDir: Output<String>? = null

Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.