ResourceRequirementsV1 Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the resource requirements for a container or a pod in a Kubernetes environment.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class ResourceRequirementsV1
[<YamlDotNet.Serialization.YamlSerializable>]
type ResourceRequirementsV1 = class
Public NotInheritable Class ResourceRequirementsV1
- Inheritance
-
ResourceRequirementsV1
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
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.
Constructors
ResourceRequirementsV1() |
Properties
Claims |
Represents a collection of resource claims associated with the resource requirements. Each claim defines specific resource requests or constraints. |
Limits |
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 |
Gets the resource requests for the container or pod. |