Share via


PodAntiAffinityV1.PreferredDuringSchedulingIgnoredDuringExecution Property

Definition

A list of weighted pod affinity terms that are considered during scheduling. This property allows specifying optional pod anti-affinity preferences for scheduling decisions, while permitting the system to schedule pods in scenarios where the preferences cannot be met. Each term is associated with a weight that indicates its relative importance.

[YamlDotNet.Serialization.YamlMember(Alias="preferredDuringSchedulingIgnoredDuringExecution")]
public System.Collections.Generic.List<Aspire.Hosting.Kubernetes.Resources.WeightedPodAffinityTermV1> PreferredDuringSchedulingIgnoredDuringExecution { get; }
[<YamlDotNet.Serialization.YamlMember(Alias="preferredDuringSchedulingIgnoredDuringExecution")>]
member this.PreferredDuringSchedulingIgnoredDuringExecution : System.Collections.Generic.List<Aspire.Hosting.Kubernetes.Resources.WeightedPodAffinityTermV1>
Public ReadOnly Property PreferredDuringSchedulingIgnoredDuringExecution As List(Of WeightedPodAffinityTermV1)

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The items in the list define preferences rather than strict requirements. The Kubernetes scheduler tries to place pods in a manner that satisfies the specified preferences, considering their weights, but it may also fall back to alternate scheduling strategies if the preferences cannot be accommodated. This property is primarily used to influence pod placement while maintaining scheduling flexibility.

Applies to