Selectors
Last updated
Last updated
For working with selectors, here is an example find you can proceed with. The same can be extended to deployments and services.
List only the pods with environment 'production'
List only the pods with development lead 'Carisa'
Search for multiple labels with negation. This command returns the list of pods with environment as 'production' and dev-lead not equal to 'Carisa'.
in operator to get pods with specific release version range
Example of notin operator
Deletes all pods with a particular dev-lead 'Carisa'.