selector

kubectl get pods --show-labels kubectl get pods --selector app=cockroachdb (-l) kubectl get pods -Lrun