From c7133339e0cc1b453454d883e23c180f11082050 Mon Sep 17 00:00:00 2001 From: pradeept Date: Mon, 6 Oct 2025 12:38:51 +0530 Subject: [PATCH 1/5] kubectl: add page top --- pages/common/kubectl-top.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/common/kubectl-top.md diff --git a/pages/common/kubectl-top.md b/pages/common/kubectl-top.md new file mode 100644 index 00000000000000..074b92069dfe38 --- /dev/null +++ b/pages/common/kubectl-top.md @@ -0,0 +1,32 @@ +# kubectl top + +> See the resource consumption for nodes or pods. +> More information: . + +- Get the resource consumption of all nodes: + +`kubectl top {{node|nodes}}` + +- Get resource consumption of a specific node: + +`kubectl top {{node|nodes}} {{node_name}}` + +- Get resource consumption of all pods: + +`kubectl top {{po|pod|pods}}` + +- Get resource consumption of a specific pod: + +`kubectl top {{po|pod|pods}} {{pod_name}}` + +- Get resource consumption of all pods in a namespace: + +`kubectl top {{po|pod|pods}} --namespace {{namespace_name}}` + +- Get resource consumption of all containers in a pod: + +`kubectl top {{po|pod|pods}} --containers` + +- Get resource consumption of all pods with specified label: + +`kubectl top {{po|pod|pods}} -l {{key=value}}` From c770685736356c63c89cd3867b4f8943f304d3fb Mon Sep 17 00:00:00 2001 From: pradeept Date: Mon, 6 Oct 2025 19:48:27 +0530 Subject: [PATCH 2/5] kubectl-top: fix typos --- pages/common/kubectl-top.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/common/kubectl-top.md b/pages/common/kubectl-top.md index 074b92069dfe38..488a8d13d09b49 100644 --- a/pages/common/kubectl-top.md +++ b/pages/common/kubectl-top.md @@ -5,28 +5,28 @@ - Get the resource consumption of all nodes: -`kubectl top {{node|nodes}}` +`kubectl top {{[no|nodes]}}` - Get resource consumption of a specific node: -`kubectl top {{node|nodes}} {{node_name}}` +`kubectl top {{[no|nodes]}} {{node_name}}` - Get resource consumption of all pods: -`kubectl top {{po|pod|pods}}` +`kubectl top {{[po|pods]}}` - Get resource consumption of a specific pod: -`kubectl top {{po|pod|pods}} {{pod_name}}` +`kubectl top {{[po|pods]}} {{[pod_name]}}` - Get resource consumption of all pods in a namespace: -`kubectl top {{po|pod|pods}} --namespace {{namespace_name}}` +`kubectl top {{[po|pods]}} {{[-n|--namespace]}} {{namespace_name}}` - Get resource consumption of all containers in a pod: -`kubectl top {{po|pod|pods}} --containers` +`kubectl top {{[po|pods]}} --containers` - Get resource consumption of all pods with specified label: -`kubectl top {{po|pod|pods}} -l {{key=value}}` +`kubectl top {{[po|pods]}} -l {{key=value}}` From 47dffa66b514ab7828fca5fe8b4f25b255341619 Mon Sep 17 00:00:00 2001 From: pradeept Date: Mon, 6 Oct 2025 19:49:53 +0530 Subject: [PATCH 3/5] kubectl-top: fix typo --- pages/common/kubectl-top.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/kubectl-top.md b/pages/common/kubectl-top.md index 488a8d13d09b49..acff9dba993de3 100644 --- a/pages/common/kubectl-top.md +++ b/pages/common/kubectl-top.md @@ -17,7 +17,7 @@ - Get resource consumption of a specific pod: -`kubectl top {{[po|pods]}} {{[pod_name]}}` +`kubectl top {{[po|pods]}} {{pod_name}}` - Get resource consumption of all pods in a namespace: From 2f2381ed79290641b6115f66b1b6d9f6f5099079 Mon Sep 17 00:00:00 2001 From: pradeept Date: Mon, 6 Oct 2025 20:32:25 +0530 Subject: [PATCH 4/5] kubectl-top: add long flag for -l --- pages/common/kubectl-top.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/kubectl-top.md b/pages/common/kubectl-top.md index acff9dba993de3..769660abc1cf72 100644 --- a/pages/common/kubectl-top.md +++ b/pages/common/kubectl-top.md @@ -29,4 +29,4 @@ - Get resource consumption of all pods with specified label: -`kubectl top {{[po|pods]}} -l {{key=value}}` +`kubectl top {{[po|pods]}} {{[-l|--selector]}} {{key=value}}` From c0f209e98a45b07c7f6bcc7d57a99446b7e46827 Mon Sep 17 00:00:00 2001 From: pradeept Date: Wed, 8 Oct 2025 12:06:41 +0530 Subject: [PATCH 5/5] kubectl-top: fix grammar --- pages/common/kubectl-top.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/kubectl-top.md b/pages/common/kubectl-top.md index 769660abc1cf72..ccb3a3adb1a573 100644 --- a/pages/common/kubectl-top.md +++ b/pages/common/kubectl-top.md @@ -27,6 +27,6 @@ `kubectl top {{[po|pods]}} --containers` -- Get resource consumption of all pods with specified label: +- Get resource consumption of all pods with the specified label: `kubectl top {{[po|pods]}} {{[-l|--selector]}} {{key=value}}`