Share via


ObjectMetaV1.Labels Property

Definition

A collection of key-value pairs used to organize and categorize Kubernetes resources.

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

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

Labels provide a mechanism to attach metadata to Kubernetes objects, enabling users to select and group resources. These labels can be utilized by controllers for policy application and management operations and can also assist in search and filtering processes.

Applies to