From e03f4b258c49d5b01466aca576e8e7a0f451397a Mon Sep 17 00:00:00 2001 From: Qiming Date: Sun, 1 Dec 2019 13:23:03 +0800 Subject: [PATCH] Fix a command in kubectl cheatsheet (#17888) Closes: #17883 --- content/en/docs/reference/kubectl/cheatsheet.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/docs/reference/kubectl/cheatsheet.md b/content/en/docs/reference/kubectl/cheatsheet.md index f237a8b25b..1033d31d0f 100644 --- a/content/en/docs/reference/kubectl/cheatsheet.md +++ b/content/en/docs/reference/kubectl/cheatsheet.md @@ -160,9 +160,9 @@ kubectl get services --sort-by=.metadata.name # List pods Sorted by Restart Count kubectl get pods --sort-by='.status.containerStatuses[0].restartCount' -# List PersistentVolumes in test namespace sorted by capacity +# List PersistentVolumes sorted by capacity -kubectl get pv -n test --sort-by=.spec.capacity.storage +kubectl get pv --sort-by=.spec.capacity.storage # Get the version label of all pods with label app=cassandra kubectl get pods --selector=app=cassandra -o \