Note that everything is experimental and may change significantly at any time.
- KubenPod is a command-line interface tool for Kubernetes that aims to make it easier to list the pods that work in node on Kubernetes Cluster. This tool uses the Kubernetes and Metrics APIs to fetch data about pods and their resource usage.
- This can be done with a node name or a pod name as you can see at examples below. If you encounter any problem or complexity, open an issue.
Before using the KubenPod CLI, ensure you have configured your Kubernetes context and have appropriate permissions to access the resources.
brew tap ehok/homebrew-tap
brew install kubenpod
The KubenPod CLI provides two main commands:
top
This command is used to show resource metrics (CPU and memory) of all pods on a specified node or the node of a specified pod.
kubenpod top [NODE_NAME]
kubenpod top --pod-name [POD_NAME]
list
This command lists all pods on a specified node or the node of a specified pod.
kubenpod list [NODE_NAME]
kubenpod list --pod-name [POD_NAME]
To display the metrics of all pods on a specific node:
$ kubenpod top nodename123
To display the metrics of all pods on the node where a specific pod is running:
$ kubenpod top --pod-name mypodname
To list all pods on a specific node:
$ kubenpod list nodename123
To list all pods on the node where a specific pod is running:
$ kubenpod list --pod-name mypodname
To display version information for CLI & Kubernetes server:
$ kubenpod version
- Ensure that your Kubernetes context is correctly set.
kubenpod
uses the default kubeconfig file path for authentication. - The commands require at least cluster-level read permissions to fetch the node and pod metrics.
Contributions to improve Kubenpod are welcome. Please feel free to fork the repository, make changes, and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Mert Öngengil @mertongngl Bilal Caliskan @bilalcaliskan