Crates.io | kelper |
lib.rs | kelper |
version | |
source | src |
created_at | 2025-04-04 18:26:32.525042+00 |
updated_at | 2025-04-13 18:55:01.410935+00 |
description | A CLI tool to serve as swiss-army knife for your operations on Kubernetes pods and nodes |
homepage | |
repository | https://github.com/aliabbasjaffri/kelper |
max_upload_size | |
id | 1620592 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A CLI tool designed as a swiss-army knife for operations on Kubernetes pods and nodes. Kelper helps you quickly inspect container images, labels, annotations, health metrics from probes, and many other useful functionalities from your Kubernetes clusters, with support for filtering by namespace, node, and pod name.
Kelper can be installed using several package managers. Choose the one that suits your environment:
If you have Rust and Cargo installed, you can build and install Kelper directly from the source:
cargo install kelper
If you are on macOS and use Homebrew, you can install Kelper via our tap:
brew tap aliabbasjaffri/kelper
brew install kelper
If you use kubectl
and have Krew installed, you can install Kelper as a kubectl plugin:
kubectl krew install kelper
### List Pod Images in a Namespace
kelper get images --namespace default
### List Pod Images on a Specific Node
kelper get images -N node-name
# or
kelper get images --node node-name
# Note: When using the `--node` flag, the `--namespace` parameter is ignored as it will show pods from all namespaces on the specified node.
### List Images for a Specific Pod
kelper get images -p pod-name
# or
kelper get images --pod pod-name
# You can combine filters to get more specific results. For example, to get images for a specific pod on a specific node:
kelper get images -N node-name -p pod-name
Kelper displays information in a clean tabular format:
Pod Images and Registries:
================================================================================
+----------------+-----------+------------+------------+---------+-------------+
| Pod Name | Namespace | Container | Image Name | Version | Registry |
+----------------+-----------+------------+------------+---------+-------------+
| nginx-pod | default | nginx | nginx | latest | docker.io |
| redis-pod | prod | redis | redis | 6.2 | docker.io |
| api-pod | staging | api | api | v1.0 | registry.io |
+----------------+-----------+------------+------------+---------+-------------+
================================================================================
kubectl
installed & configured with your cluster# clone kelper project
cd kelper
cargo build --release
Kelper includes comprehensive tests covering various aspects of the codebase. The tests are organized in the tests
directory.
To run the tests:
# Run all tests
cargo test
# Run tests with output
cargo test -- --nocapture
# Run specific test
cargo test test_process_pod
This project uses cargo-release
to automate the release process, ensuring that the version in Cargo.toml
and the Git tag are synchronized.
Install cargo-release
:
cargo install cargo-release
Ensure your working directory is clean (all changes committed).
Make sure you are on the main branch and have pulled the latest changes.
bash scripts/cargo_release.sh <VERSION>
to update the version in the Cargo.toml
file and create a Git tag.This project is licensed under the MIT License - see the LICENSE file for details.