Update cheatsheet.md (Add --sort-by option for top command)

Update cheatsheet.md (Add --sort-by option for `top` command)
This commit is contained in:
andrzejsydor
2021-01-08 20:18:56 +01:00
committed by GitHub
parent a66af45c21
commit 1537aa20a2
@@ -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