Share via


PodAffinityV1.RequiredDuringSchedulingIgnoredDuringExecution Property

Definition

Represents a collection of hard affinity rules used during pod scheduling in Kubernetes. The RequiredDuringSchedulingIgnoredDuringExecution property contains a list of PodAffinityTermV1 objects, each defining strict constraints that must be met for pod placement during scheduling. These constraints are mandatory for scheduling but are not enforced once the pod is running. This allows for ensuring initial placement conditions while tolerating changes in the cluster environment after the pod is already scheduled.

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

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to