ServiceTemplateSpecContainer

data class ServiceTemplateSpecContainer(val args: List<String>? = null, val commands: List<String>? = null, val envFroms: List<ServiceTemplateSpecContainerEnvFrom>? = null, val envs: List<ServiceTemplateSpecContainerEnv>? = null, val image: String, val livenessProbe: ServiceTemplateSpecContainerLivenessProbe? = null, val ports: List<ServiceTemplateSpecContainerPort>? = null, val resources: ServiceTemplateSpecContainerResources? = null, val startupProbe: ServiceTemplateSpecContainerStartupProbe? = null, val volumeMounts: List<ServiceTemplateSpecContainerVolumeMount>? = null, val workingDir: String? = null)

Constructors

Link copied to clipboard
fun ServiceTemplateSpecContainer(args: List<String>? = null, commands: List<String>? = null, envFroms: List<ServiceTemplateSpecContainerEnvFrom>? = null, envs: List<ServiceTemplateSpecContainerEnv>? = null, image: String, livenessProbe: ServiceTemplateSpecContainerLivenessProbe? = null, ports: List<ServiceTemplateSpecContainerPort>? = null, resources: ServiceTemplateSpecContainerResources? = null, startupProbe: ServiceTemplateSpecContainerStartupProbe? = null, volumeMounts: List<ServiceTemplateSpecContainerVolumeMount>? = null, workingDir: String? = null)

Types

Link copied to clipboard
object Companion

Properties

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

Arguments to the entrypoint. The docker image's CMD 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. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

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

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. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell

Link copied to clipboard

(Optional, Deprecated) List of sources to populate environment variables in the container. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Structure is documented below.

Link copied to clipboard

List of environment variables to set in the container. Structure is documented below.

Link copied to clipboard

Docker image name. This is most often a reference to a container located in the container registry, such as gcr.io/cloudrun/hello More info: https://kubernetes.io/docs/concepts/containers/images

Link copied to clipboard

List of open ports in the container. More Info: https://cloud.google.com/run/docs/reference/rest/v1/RevisionSpec#ContainerPort Structure is documented below.

Link copied to clipboard

Compute Resources required by this container. Used to set values such as max memory More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#requests-and-limits Structure is documented below.

Link copied to clipboard

Volume to mount into the container's filesystem. Only supports SecretVolumeSources. Structure is documented below.

Link copied to clipboard
val workingDir: String? = null

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