Share via


Resources.Reservations Property

Definition

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.

Applies to