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.
Introduction
In the previous chapter, we created various kinds of pods and managed their life cycles. Once ...
Get The Kubernetes Workshop now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.