PreferredSchedulingTermV1 Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class PreferredSchedulingTermV1
[<YamlDotNet.Serialization.YamlSerializable>]
type PreferredSchedulingTermV1 = class
Public NotInheritable Class PreferredSchedulingTermV1
- Inheritance
-
PreferredSchedulingTermV1
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
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.
Constructors
PreferredSchedulingTermV1() |
Properties
Preference |
Represents the preference for Kubernetes node scheduling policies. |
Weight |
Represents the weight assigned to a preferred scheduling condition. |