PreferredSchedulingTermV1
Class sealed net10.0
Represents a preferred scheduling term used in Kubernetes node affinity configuration. Defines a preference for scheduling pods onto nodes based on specific criteria with an associated weight.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class PreferredSchedulingTermV1{ // ...}Remarks
Section titled Remarks This class is part of the Kubernetes scheduling configuration, specifically for preferred scheduling constraints. Each instance of this class includes a preference and a weight: - The `Preference` property indicates the criteria for selecting nodes using a `NodeSelectorTermV1`. - The `Weight` property specifies the relative importance of this term when multiple terms are evaluated. The scheduler attempts to schedule pods on nodes that satisfy the preference criteria with the highest weight values, but these preferences are not strict and do not prevent scheduling on nodes that do not fulfill them.