Share via


WeightedPodAffinityTermV1.PodAffinityTerm Property

Definition

Represents the pod affinity or anti-affinity requirement used in Kubernetes scheduling. This property is used to define rules that influence pod placement based on the labels, namespaces, and topology keys of other pods in a cluster.

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

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The PodAffinityTerm allows specifying conditions for controlling pod scheduling by defining criteria such as: - Label selectors to match specific labels of target pods. - Namespace selectors to limit the matching pods to specific namespaces. - A topology key to define the ___domain that is considered for affinity or anti-affinity rules.

Applies to