Share via


AffinityV1.PodAffinity Property

Definition

Represents inter-pod affinity scheduling rules to influence the placement of pods relative to other pods. This property defines constraints for scheduling pods to be either co-located or not co-located with specified pods, based on labels and topology.

[YamlDotNet.Serialization.YamlMember(Alias="podAffinity")]
public Aspire.Hosting.Kubernetes.Resources.PodAffinityV1 PodAffinity { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="podAffinity")>]
member this.PodAffinity : Aspire.Hosting.Kubernetes.Resources.PodAffinityV1 with get, set
Public Property PodAffinity As PodAffinityV1

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to