Resources.Reservations 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.
Gets or sets the resources reserved for a Docker service in Swarm mode.
[YamlDotNet.Serialization.YamlMember(Alias="reservations")]
public Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm.ResourceSpec? Reservations { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="reservations")>]
member this.Reservations : Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm.ResourceSpec with get, set
Public Property Reservations As ResourceSpec
Property Value
- Attributes
-
YamlDotNet.Serialization.YamlMemberAttribute
Remarks
This property represents the resource reservations for a Docker service. These reservations ensure that the specified resources, such as CPU and memory, are allocated to the service when it runs. Resource reservations help in providing guaranteed resource availability to the service within the cluster.