Function |container

work/resources::|container


Usage

|container(name, memory, cpu, storage, arch, mounts, image, pull_secret)

Parameters

↳ name: string
↳ memory: u32
↳ cpu: u32
↳ storage: u32
↳ arch: Arch (work/resources/arch::Arch)
↳ mounts: Vec<Mount> (work/resources::Mount)
↳ image: string
↳ pull_secret: Option<string>

Return

Container


Build a Container specification.

  • name: unique name for this container within the request.
  • memory: memory allocated in megabytes.
  • cpu: CPU allocated in millicores.
  • storage: ephemeral storage in megabytes.
  • arch: CPU architecture required.
  • mounts: list of volume mounts.
  • image: container image reference.
  • pull_secret: optional image pull secret (defaults to "{}").