ResourceRequirements

data class ResourceRequirements(val claims: List<ResourceClaim>? = null, val limits: Map<String, String>? = null, val requests: Map<String, String>? = null)

ResourceRequirements describes the compute resource requirements.

Constructors

Link copied to clipboard
constructor(claims: List<ResourceClaim>? = null, limits: Map<String, String>? = null, requests: Map<String, String>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val claims: List<ResourceClaim>? = null

Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers.

Link copied to clipboard
val limits: Map<String, String>? = null

Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/

Link copied to clipboard
val requests: Map<String, String>? = null

Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/