Share via


AffinityV1.PodAntiAffinity Property

Definition

Represents the pod anti-affinity configuration for scheduling in Kubernetes. Pod anti-affinity allows specifying rules to avoid placing certain pods together on the same node or in a specific topology ___domain. This ensures Pods are scheduled in a manner that prevents tightly coupling their placement.

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

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to