cheatsheet.md: fix command that queries for label version (#15355)
'rc' in the command is interpreted as pod name
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
05a84463b2
commit
a90f783820
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user