PodSpecV1.Affinity Property

Definition

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

Applies to