WeightedPodAffinityTermV1 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 weighted pod affinity term used in Kubernetes scheduling policies. WeightedPodAffinityTermV1 defines a preference for scheduling pods closer to other pods based on affinity/anti-affinity rules.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class WeightedPodAffinityTermV1
[<YamlDotNet.Serialization.YamlSerializable>]
type WeightedPodAffinityTermV1 = class
Public NotInheritable Class WeightedPodAffinityTermV1
- Inheritance
-
WeightedPodAffinityTermV1
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
Remarks
This class is typically utilized in scenarios where a Kubernetes scheduler prioritizes certain affinities while allowing flexibility in placement. The weight determines the level of preference for the associated PodAffinityTermV1.
Constructors
WeightedPodAffinityTermV1() |
Properties
PodAffinityTerm |
Represents the pod affinity or anti-affinity requirement used in Kubernetes scheduling. This property is used to define rules that influence pod placement based on the labels, namespaces, and topology keys of other pods in a cluster. |
Weight |
Gets or sets the weight associated with the pod affinity term. The weight indicates the importance of the term relative to other terms. A higher weight implies a stronger preference or priority for satisfying the associated pod affinity term. |