Definition:
- select objects based on labels
- unlike names and UIDs, objects are not expected to have same labels
Equity-based requirement:
environment = prodenvironment == prodenvironment != prod
Set-based requirement
- environment in (production, qa)
- tier notin (frontend, backend)
partitionif label exist- !partition: if label doesnt exist
API
- matchExpressions
- key
- operator (In, NotIn, Exists, DoesNotExist)
- values
- matchLabels: map[string]string