April 2018
Intermediate to advanced
374 pages
8h 35m
English
Selectors are used in Kubernetes to connect resources together based on the labels they have (or don’t have). A selector is meant to provide a means to retrieve a set of resources in Kubernetes.
Most of the kubectl commands support a -l option that allows you to provide a selector to filter what it finds.
A Selector can be equality-based to represent specific values, or set-based to allow filtering and selection based on multiple values. Equality selectors use = or !=. Set selectors use in, notin, and exists. You can combine these in a selector to create more complex filters and selection criteria by appending the selectors together with a , between them.
For example, you might use a label app to represent ...
Read now
Unlock full access