次の方法で共有


ReplicaSetSpecV1.Selector Property

Definition

Gets or sets the label selector for this ReplicaSet specification. This selector is used to identify and target which set of Pods the ReplicaSet will manage.

[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 contains criteria for filtering resources based on their labels. It may include: - MatchLabels: Specifies the labels that must explicitly match. - MatchExpressions: Allows defining complex rules for label matching. Both components can be used together to create comprehensive selection criteria.

Applies to