Kubernetes - Labels and Selectors
You want to select pods with label
app=web or app=api. Which command achieves this?app=web or app=api. Which command achieves this?in operator allows selecting multiple values for the same label key (OR logic), like app in (web, api).kubectl get pods -l 'app in (web, api)' selects pods labeled app=web or app=api.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions