PodAffinityTermV1.LabelSelector Property
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.
Gets or sets the label selector used to filter Kubernetes resources based on their labels. The label selector enables dynamic selection of a specific set of objects by matching labels or expressions that satisfy the requirements.
[YamlDotNet.Serialization.YamlMember(Alias="labelSelector")]
public Aspire.Hosting.Kubernetes.Resources.LabelSelectorV1 LabelSelector { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="labelSelector")>]
member this.LabelSelector : Aspire.Hosting.Kubernetes.Resources.LabelSelectorV1 with get, set
Public Property LabelSelector As LabelSelectorV1
Property Value
- Attributes
-
YamlDotNet.Serialization.YamlMemberAttribute
Remarks
The label selector may include the following components: - MatchLabels: A dictionary of key-value pairs where the labels of the resources must match exactly. - MatchExpressions: A collection of label selector requirements that define more advanced filtering conditions.