Crates.io | klog |
lib.rs | klog |
version | |
source | src |
created_at | 2024-07-26 06:15:39.974022 |
updated_at | 2024-12-06 07:25:22.721191 |
description | klog is a tool that allows you to tail logs of multiple Kubernetes pods simultaneously. |
homepage | |
repository | https://github.com/tobifroe/klog |
max_upload_size | |
id | 1315834 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | 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 |
klog is a tool that allows you to tail logs of multiple Kubernetes pods simultaneously.
You can build and install klog using cargo:
# Using Cargo
cargo install klog
alternatively, grab a pre-built binary for your OS from the releases page. Curently, there are x86_64 binaries provided for Windows, MacOS and Linux.
klog will use your current sessions kubecontext.
klog [OPTIONS] --namespace <NAMESPACE> --pods <PODS>...
# Example
klog -n my-namespace -p pod1 pod2 pod3 -f
-n, --namespace <NAMESPACE> Namespace to use
-d, --deployments <DEPLOYMENTS>... Deployment to log
-s, --statefulsets <STATEFULSETS>... Statefulsets to log
--daemonsets <DAEMONSETS>... Daemonsets to log
--jobs <JOBS>... Jobs to log
--cronjobs <CRONJOBS>... CronJobs to log
-p, --pods <PODS>... Pods to log
-f, --follow Follow log?
-h, --help Print help
-V, --version Print version
To tail logs from pods pod1
, pod2
, pod3
and deployment my-service
in the my-namespace
namespace and follow the logs, run:
klog -n my-namespace -p pod1 pod2 pod3 -d my-service --follow