Package org.cdk8s.plus28.k8s
Interface ResourceRequirements
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ResourceRequirements.Jsii$Proxy
@Generated(value="jsii-pacmak/1.102.0 (build e354887)", date="2024-08-03T12:13:25.859Z") @Stability(Stable) public interface ResourceRequirements extends software.amazon.jsii.JsiiSerializable
ResourceRequirements describes the compute resource requirements.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classResourceRequirements.BuilderA builder forResourceRequirementsstatic classResourceRequirements.Jsii$ProxyAn implementation forResourceRequirements
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static ResourceRequirements.Builderbuilder()default List<ResourceClaim>getClaims()Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.default Map<String,Quantity>getLimits()Limits describes the maximum amount of compute resources allowed.default Map<String,Quantity>getRequests()Requests describes the minimum amount of compute resources required.
-
-
-
Method Detail
-
getClaims
@Stability(Stable) @Nullable default List<ResourceClaim> getClaims()
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.
-
getLimits
@Stability(Stable) @Nullable default Map<String,Quantity> getLimits()
Limits describes the maximum amount of compute resources allowed.More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
-
getRequests
@Stability(Stable) @Nullable default Map<String,Quantity> getRequests()
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/
-
builder
@Stability(Stable) static ResourceRequirements.Builder builder()
- Returns:
- a
ResourceRequirements.BuilderofResourceRequirements
-
-