Deploy.Resources Property
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 configurations for a deployable service within Docker.
[YamlDotNet.Serialization.YamlMember(Alias="resources")]
public Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm.Resources? Resources { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="resources")>]
member this.Resources : Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm.Resources with get, set
Public Property Resources As Resources
Property Value
- Attributes
-
YamlDotNet.Serialization.YamlMemberAttribute
Remarks
The Resources
class is used to define resources such as CPU and memory that are allocated to or reserved for a service. It includes configurations for both resource limits and reservations.