Label
Kubernetes Official Docs - Labels and Selectors
In Kubernetes, labels are a system to organize objects into groups. Labels are key-value pairs that are attached to each object. Label selectors can be passed along with a request to the apiserver to retrieve a list of objects which match that label selector.
To add a label to a pod, add a labels section under metadata in the pod definition:
To label a running pod
To list pods based on labels
Last updated
Was this helpful?