Resources
Last updated
Last updated
A resources type allows you to configure the maximum resources which can be consumed.
Attributes are the properties of a resource that can be used to configure it.
CPU cpu
int
Set the maximum CPU which can be consumed by the container in MHz, 1 CPU == 1000MHz.
CPUPin cpu_pin
[]int
Pin the container CPU consumption to one or more logical CPUs. For example to pin the container to the core 1 and 4.
Memory memory
int
Maximum memory which a container can consume, specified in Megabytes.
GPU gpu
block
GPU settings to pass through to container
These attributes are computed when the config is parsed and applied, and are therefor only known at parsetime or runtime.
Meta ID meta.id
string
The full ID of the resource e.g. `resource.type.name`. This is computed from the full resource path:
Meta Type meta.type
string
The type of the resource. This taken from the type label of the resource definition.
Meta Name meta.name
string
The name of the resource. This taken from the name label of the resource definition.