From 1537aa20a2d0548ae21669bd8e6d80b8466143af Mon Sep 17 00:00:00 2001 From: andrzejsydor Date: Fri, 8 Jan 2021 20:18:56 +0100 Subject: [PATCH] Update cheatsheet.md (Add --sort-by option for `top` command) Update cheatsheet.md (Add --sort-by option for `top` command) --- content/en/docs/reference/kubectl/cheatsheet.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/en/docs/reference/kubectl/cheatsheet.md b/content/en/docs/reference/kubectl/cheatsheet.md index 8a5d15b0b2..b01945249f 100644 --- a/content/en/docs/reference/kubectl/cheatsheet.md +++ b/content/en/docs/reference/kubectl/cheatsheet.md @@ -314,6 +314,7 @@ kubectl exec my-pod -- ls / # Run command in existing po kubectl exec --stdin --tty my-pod -- /bin/sh # Interactive shell access to a running pod (1 container case) kubectl exec my-pod -c my-container -- ls / # Run command in existing pod (multi-container case) kubectl top pod POD_NAME --containers # Show metrics for a given pod and its containers +kubectl top pod POD_NAME --sort-by=cpu # Show metrics for a given pod and sort it by 'cpu' or 'memory' ``` ## Interacting with Nodes and cluster