You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ A powerful and flexible Kubernetes [Model Context Protocol (MCP)](https://blog.m
24
24
-**Get** a pod by name from the specified namespace.
25
25
-**Delete** a pod by name from the specified namespace.
26
26
-**Show logs** for a pod by name from the specified namespace.
27
+
-**Top** gets resource usage metrics for all pods or a specific pod in the specified namespace.
27
28
-**Exec** into a pod and run a command.
28
29
-**Run** a container image in a pod and optionally expose it.
29
30
-**✅ Namespaces**: List Kubernetes Namespaces.
@@ -314,6 +315,23 @@ Run a Kubernetes Pod in the current or provided namespace with the provided cont
314
315
- TCP/IP port to expose from the Pod container
315
316
- No port exposed if not provided
316
317
318
+
### `pods_top`
319
+
320
+
Lists the resource consumption (CPU and memory) as recorded by the Kubernetes Metrics Server for the specified Kubernetes Pods in the all namespaces, the provided namespace, or the current namespace
- If `true`, lists resource consumption for Pods in all namespaces
325
+
- If `false`, lists resource consumption for Pods in the configured or provided namespace
326
+
-`namespace` (`string`, optional)
327
+
- Namespace to list the Pod resources from
328
+
- If not provided, will list Pods from the configured namespace (in case all_namespaces is false)
329
+
-`name` (`string`, optional)
330
+
- Name of the Pod to get resource consumption from
331
+
- If not provided, will list resource consumption for all Pods in the applicable namespace(s)
332
+
-`label_selector` (`string`, optional)
333
+
- Kubernetes label selector (e.g. 'app=myapp,env=prod' or 'app in (myapp,yourapp)'), use this option when you want to filter the pods by label (Optional, only applicable when name is not provided)
334
+
317
335
### `projects_list`
318
336
319
337
List all the OpenShift projects in the current cluster
0 commit comments