From a90f783820ef59acba6c653403916fbd136fe209 Mon Sep 17 00:00:00 2001 From: devasat Date: Thu, 11 Jul 2019 19:13:05 -0400 Subject: [PATCH] cheatsheet.md: fix command that queries for label version (#15355) 'rc' in the command is interpreted as pod name --- content/en/docs/reference/kubectl/cheatsheet.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/reference/kubectl/cheatsheet.md b/content/en/docs/reference/kubectl/cheatsheet.md index 4ce5ec9bde..74efeb19bb 100644 --- a/content/en/docs/reference/kubectl/cheatsheet.md +++ b/content/en/docs/reference/kubectl/cheatsheet.md @@ -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