Share via


PodAffinityTermV1.MatchLabelKeys Property

Definition

A list of label keys that should match for the associated Kubernetes resource. This property specifies a set of labels that must be present and match among a group of resources when certain constraints, such as affinity or anti-affinity rules, are applied.

[YamlDotNet.Serialization.YamlMember(Alias="matchLabelKeys")]
public System.Collections.Generic.List<string> MatchLabelKeys { get; }
[<YamlDotNet.Serialization.YamlMember(Alias="matchLabelKeys")>]
member this.MatchLabelKeys : System.Collections.Generic.List<string>
Public ReadOnly Property MatchLabelKeys As List(Of String)

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

This property is intended to work in conjunction with label selectors to filter resources based on their labels. It helps define stricter conditions for selecting resources during workload scheduling and resource management in Kubernetes clusters.

Applies to