# ResourceRequirementsV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/ResourceRequirementsV1.cs)

Represents the resource requirements for a container or a pod in a Kubernetes environment.

## Definition

```csharp
namespace Aspire.Hosting.Kubernetes.Resources;

public sealed class ResourceRequirementsV1
{
    // ...
}
```

## Remarks

The [ResourceRequirementsV1](/reference/api/csharp/aspire.hosting.kubernetes/resourcerequirementsv1.md) class is used to define the resource constraints that a container or pod should adhere to, specified through claims, limits, and requests.

## Constructors

- [ResourceRequirementsV1](/reference/api/csharp/aspire.hosting.kubernetes/resourcerequirementsv1/constructors.md#constructor)

## Properties

- [Claims](/reference/api/csharp/aspire.hosting.kubernetes/resourcerequirementsv1/properties.md#claims) : [List<ResourceClaimV1>](/reference/api/csharp/aspire.hosting.kubernetes/resourceclaimv1.md) `get` -- Represents a collection of resource claims associated with the resource requirements. Each claim defines specific resource requests or constraints.
- [Limits](/reference/api/csharp/aspire.hosting.kubernetes/resourcerequirementsv1/properties.md#limits) : `Dictionary<string, string>` `get` -- 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.
- [Requests](/reference/api/csharp/aspire.hosting.kubernetes/resourcerequirementsv1/properties.md#requests) : `Dictionary<string, string>` `get` -- Gets the resource requests for the container or pod.
