Illustrate negative-exists selector in cheat sheet (#12667)

This commit is contained in:
Tim Bannister 2019-02-17 15:49:36 +00:00 committed by Kubernetes Prow Robot
parent ba42c9311d
commit 64fc415cdd
1 changed files with 4 additions and 0 deletions

View File

@ -146,6 +146,10 @@ kubectl get pods --sort-by='.status.containerStatuses[0].restartCount'
kubectl get pods --selector=app=cassandra rc -o \
jsonpath='{.items[*].metadata.labels.version}'
# Get all worker nodes (use a selector to exclude results that have a label
# named 'node-role.kubernetes.io/master')
kubectl get node --selector='!node-role.kubernetes.io/master'
# Get all running pods in the namespace
kubectl get pods --field-selector=status.phase=Running