January 2019
Intermediate to advanced
484 pages
11h 48m
English
Labels are sets of key/pair values that attach to objects. They're designed to provide meaningful, identifying information about objects. Common usages are to indicate the name of the micro-service, the tier, the environment, and the software version. Users can define meaningful labels that could be used with selectors later. The syntax of labels in an object spec is as follows:
labels: $key1: $value1 $key2: $value2
Along with labels, label selectors are used to filter sets of objects. Separated by commas, multiple requirements will be joined by the AND logical operator. There are two ways to filter:
Equality-based requirements support the following operators: =, ==
Read now
Unlock full access