cheatsheet.md: fix command that queries for label version (#15355)

'rc' in the command is interpreted as pod name
This commit is contained in:
devasat 2019-07-11 19:13:05 -04:00 committed by Kubernetes Prow Robot
parent 05a84463b2
commit a90f783820
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ kubectl get services --sort-by=.metadata.name # List Services Sorted by Name
kubectl get pods --sort-by='.status.containerStatuses[0].restartCount'
# Get the version label of all pods with label app=cassandra
kubectl get pods --selector=app=cassandra rc -o \
kubectl get pods --selector=app=cassandra -o \
jsonpath='{.items[*].metadata.labels.version}'
# Get all worker nodes (use a selector to exclude results that have a label