ContainerResource
A description of allowed container resource in Kubernetes.
Syntax
{
"cpu": 0,
"memory": "string",
"ephemeralStorage": "string"
}
Type Definition
- Type
object
- Properties
cpu
optionalThe number of CPU units for the container. Fractional values are allowed.
- Type
number
- Format
float
- Type
memory
optionalThe amount of memory for the container measured in bytes. You can represent the value as an integer, or a decimal value with suffixes such as
T
,G
,M
,k
. The suffixes are case-insensitive and 1024-based, so1024
,1k
,1K
, and1.0k
all represent the same amount.- Type
string
- Pattern
^([0-9]+|([0-9]+[.]?[0-9]*|[.][0-9]+)[ ]*[kKmMgGtT])$
- Type
ephemeralStorage
optionalThe amount of ephemeral storage for the container measured in bytes. You can represent the value as an integer, or a decimal value with suffixes such as
T
,G
,M
,k
. The suffixes are case-insensitive and 1024-based, so1024
,1k
,1K
, and1.0k
all represent the same amount.- Type
string
- Pattern
^([0-9]+|([0-9]+[.]?[0-9]*|[.][0-9]+)[ ]*[kKmMgGtT])$
- Type