ResourceRequirementsV1
Class sealed net10.0
Represents the resource requirements for a container or a pod in a Kubernetes environment.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class ResourceRequirementsV1{ // ...}Remarks
Section titled Remarks The
ResourceRequirementsV1 class is used to define the resource constraints that a container or pod should adhere to, specified through claims, limits, and requests. Constructors1
Section titled ConstructorsProperties3
Section titled PropertiesClaimsget Represents a collection of resource claims associated with the resource requirements. Each claim defines specific resource requests or constraints.
LimitsgetDictionary<string, string> Represents the resource limits for a Kubernetes resource. Limits specify the maximum amount of resources (e.g., CPU, memory) that a container can use. The keys represent the resource types, and the corresponding values specify the quantity limit for each resource.
RequestsgetDictionary<string, string> Gets the resource requests for the container or pod.