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 name: String? = 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
constructor(args: List<String>? = null, commands: List<String>? = null, envFroms: List<ServiceTemplateSpecContainerEnvFrom>? = null, envs: List<ServiceTemplateSpecContainerEnv>? = null, image: String, livenessProbe: ServiceTemplateSpecContainerLivenessProbe? = null, name: String? = 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.

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.

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

Link copied to clipboard

Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes Structure is documented below.

Link copied to clipboard
val name: String? = null

Name of the container

Link copied to clipboard

List of open ports in the container. Structure is documented below.

Link copied to clipboard

Compute Resources required by this container. Used to set values such as max memory Structure is documented below.

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. 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.