pub struct ResourceRequirements {
pub claims: Option<Vec<ResourceClaim>>,
pub limits: Option<BTreeMap<String, Quantity>>,
pub requests: Option<BTreeMap<String, Quantity>>,
}
Expand description
ResourceRequirements describes the compute resource requirements.
Fields§
§claims: Option<Vec<ResourceClaim>>
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.
limits: Option<BTreeMap<String, Quantity>>
Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
requests: Option<BTreeMap<String, Quantity>>
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/
Trait Implementations§
Source§impl Clone for ResourceRequirements
impl Clone for ResourceRequirements
Source§fn clone(&self) -> ResourceRequirements
fn clone(&self) -> ResourceRequirements
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ResourceRequirements
impl Debug for ResourceRequirements
Source§impl DeepMerge for ResourceRequirements
impl DeepMerge for ResourceRequirements
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.