Share via


PodAffinityV1.PreferredDuringSchedulingIgnoredDuringExecution Property

Definition

Represents an optional list of weighted pod affinity terms that are considered during the scheduling phase of a pod's lifecycle, but ignored during the execution phase.

[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

This property is typically used to express soft rules for pod placement, enabling the Kubernetes scheduler to give higher preference to certain nodes or configurations without mandating strict enforcement.

Applies to