Crates.io | navipod |
lib.rs | navipod |
version | 0.8.13 |
source | src |
created_at | 2023-11-05 23:14:47.135615 |
updated_at | 2024-10-31 03:03:42.692314 |
description | A cli tool for inspecting containers in Kubernetes |
homepage | |
repository | https://github.com/navicore/navipod |
max_upload_size | |
id | 1026219 |
size | 28,598,652 |
Alpha - Under constant development as I practice Rust programming and discover needs not met by other tools.
The command uses the local kubecontext credentials to access Kubernetes clusters.
The primary use case of the tool is to get quick answers to replica and pod and ingress state.
The tool also captures data to an embedded DB for exporting as RDF.
It will get Prometheus data from pods which are annotated for Prometheus using the convention:
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: "/actuator/prometheus"
prometheus.io/port: "8081"
The cli supports exporting the db to both N-Triple and Turtle RDF files.
#latest stable version via https://crates.io/crates/navipod
cargo install navipod
#or from this repo:
cargo install --path .
Configure for tab completion:
navipod generate-completion zsh > /usr/local/share/zsh/site-functions/_navipod
from navipod -h
A cli tool for inspecting containers in Kubernetes
Usage: navipod [OPTIONS] <COMMAND>
Commands:
tui start text-based UI
explain-pod report on pod external ingress
scan-metrics collect pod metrics and write to db
export-triples export db data to RDF nt files
export-turtle export db data to RDF turtle files
report show db stats
generate-completion generate completion script for bash and zsh
help Print this message or the help of the given subcommand(s)
Options:
-t, --ttl-rdf-filename <TTL_RDF_FILENAME> export Turtle RDF file [default: navipod.ttl]
-r, --rdf-filename <RDF_FILENAME> export N-Triples RDF file [default: navipod.nt]
-n, --namespace <NAMESPACE> Name of the namespace to walk
-d, --db-location <DB_LOCATION> [default: /tmp/navipod.db]
-h, --help Print help
-V, --version Print version