Share via


StatefulSetSpecV1.Selector Property

Definition

Gets or sets the label selector that is used to identify the set of pods targeted by the StatefulSet.

[YamlDotNet.Serialization.YamlMember(Alias="selector")]
public Aspire.Hosting.Kubernetes.Resources.LabelSelectorV1 Selector { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="selector")>]
member this.Selector : Aspire.Hosting.Kubernetes.Resources.LabelSelectorV1 with get, set
Public Property Selector As LabelSelectorV1

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The Selector property defines the criteria for selecting a subset of pods based on their labels. This property is critical for associating the StatefulSet with the specified pods, ensuring that the StatefulSet operates on the desired group of resources. The associated LabelSelectorV1 allows for both exact matching of labels and advanced filtering through label selector expressions.

Applies to