Share via


ServiceSpecV1.Selector Property

Definition

Represents the selector field in the Kubernetes Service specification.

[YamlDotNet.Serialization.YamlMember(Alias="selector")]
public System.Collections.Generic.Dictionary<string,string> Selector { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="selector")>]
member this.Selector : System.Collections.Generic.Dictionary<string, string> with get, set
Public Property Selector As Dictionary(Of String, String)

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The selector is a key-value pair dictionary used to identify a set of pods that the Service targets. The Service routes traffic to these pods based on the selector definition.

Applies to