Labels
Each object in a OpenShift cluster model can have any number of labels, which are basically key-value properties. This is a very simple, yet powerful, feature.
We will need a way to be able to categorize different types of objects. We can build a directory structure for that, but the problem with that solution is that it's not flexible enough. A directory structure provides one view of objects, but there may be many of them, depending on the user or on the current usage scenario.
Labels, on the other hand, provide full flexibility. Any object can have any number of labels applied. Those labels can be used in queries to find an OpenShift object based on a wide range of characteristics.
As an example, let's take a look at a service object ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access