6. Labels and Annotations
Overview
Metadata is extremely useful for any organization and has its use in managing potentially thousands of resources in a cluster. This chapter teaches you how to add metadata to your pods or any other Kubernetes objects. You will be introduced to the concept of labels and annotations. We will also explain their use cases so that you can decide whether to use labels or annotations for a particular use case. You'll utilize labels to organize your objects by using label selectors to select or filter organized sets of objects. You'll also use annotations to add unstructured metadata information to objects.