40 releases

new 0.8.8 Apr 29, 2024
0.8.2 Mar 26, 2024
0.5.1 Dec 8, 2023
0.5.0 Nov 5, 2023

#587 in Development tools

Download history 5/week @ 2024-01-27 19/week @ 2024-02-03 105/week @ 2024-02-10 1134/week @ 2024-02-17 1322/week @ 2024-02-24 289/week @ 2024-03-02 374/week @ 2024-03-09 23/week @ 2024-03-16 133/week @ 2024-03-23 29/week @ 2024-03-30 141/week @ 2024-04-06 12/week @ 2024-04-13 400/week @ 2024-04-20

583 downloads per month

MIT license

9MB
5.5K SLoC

A TUI and CLI for Inspecting Containers in Kubernetes

an image showing navipod inspecting replicas and pod and ingress

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.

Install

#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

Usage

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

Dependencies

~112MB
~2M SLoC