A CLI tool that fetches & displays pods and related information.
kubectl
tool is required for using this script.
- Fetching pods:
python3 main.py fetch ...args
- Configuration:
python3 main.py config
For easier usage, a bash function that drives this script can be created. In order to do that below bash function can be added at the end of ~/.bashrc
file (~/.zshrc
in MACOS):
function pods() {
python3 <<<path-to-main.py>>> "$@"
}
Then terminal session can be closed or following command can be executed: source ~/.bashrc
. After these operations script can be run via below commands:
- Fetching pods:
pods fetch ...args
- Configuration:
pods config
Takes array of patterns for filtering pods.
Shows pods with detailed information such as age, restart count, cpu & memory usage etc.
Shows pods in production environment. (By default it shows pods in development environment).
Refreshes pod details periodically.
Shows pods that are in given namespace. (If not given, the default namespace in the config.json
file will be used).