PodSpecV1.Affinity 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 affinity rules for the pod. Affinity specifies scheduling constraints for a pod to ensure it is scheduled onto a node that satisfies certain conditions. This can include nodeSelector-like or pod affinity/anti-affinity constraints.
[YamlDotNet.Serialization.YamlMember(Alias="affinity")]
public Aspire.Hosting.Kubernetes.Resources.AffinityV1? Affinity { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="affinity")>]
member this.Affinity : Aspire.Hosting.Kubernetes.Resources.AffinityV1 with get, set
Public Property Affinity As AffinityV1
Property Value
- Attributes
-
YamlDotNet.Serialization.YamlMemberAttribute