ResourceQuantity¶
- pydantic model controller.models.v1.lab.ResourceQuantity¶
A Kubernetes resource request or limit.
- Parameters:
data (
Any)
Show JSON schema
{ "title": "ResourceQuantity", "description": "A Kubernetes resource request or limit.", "type": "object", "properties": { "cpu": { "description": "Number of CPU cores", "examples": [ 1.5 ], "title": "CPU", "type": "number" }, "memory": { "description": "Amount of memory in bytes. Also accepts strings with SI suffixes, which will be converted to bytes. Be sure to use the suffix with ``i`` to indicate powers of two (1024 rather than 1000) if that is desired.", "examples": [ 1073741824, "1Gi" ], "title": "Memory", "type": "integer" } }, "required": [ "cpu", "memory" ] }
- Fields:
- Validators:
_validate_memory»memory
- field cpu: float [Required]¶
Number of CPU cores
- field memory: int [Required]¶
Amount of memory in bytes. Also accepts strings with SI suffixes, which will be converted to bytes. Be sure to use the suffix with
ito indicate powers of two (1024 rather than 1000) if that is desired.- Validated by:
_validate_memory