Skip to main content

The kuba-mazing kubectl companion

Project description

Kuba

The kuba-amazing kubectl companion with fzf, fx, aliases, and more!

Kuba logo

Features

Kuba demo

  • ☁️ Fuzzy commands like get and describe
  • 🧠 Guess pod containers automagically
  • ✈️ Cross namespaces and clusters in one command
  • Cut down on keystrokes with an alias language
  • 🧪 Simulate scheduling without the scheduler
  • 🔁 And lots more!

Install

Quick-install:

pip install kuba

Kuba makes use of the following tools you'll likely want to install as well: fzf, fx, kubecolor, and krew for stern and lineage. On macOS, you can install these tools with Homebrew:

brew install fzf fx kubecolor krew && kubectl krew install stern lineage

To use the aliases, add this to one of your dotfiles:

source <(kuba shellenv --kubectl kubecolor)  # omit the --kubectl kubecolor if you haven't installed kubecolor

Usage

Start by using kuba get and kuba describe as a ~drop-in replacements for kubectl get and kubectl describe.

Then check out the help pages for next steps, including using the alias language.

$ kuba --help
Usage: kuba [OPTIONS] COMMAND [ARGS]...

  The kuba-mazing kubectl companion.

Options:
  -h, --help  Show this message and exit.

Commands:
  api       Shadow of `kubectl api-resources` but with optional fzf for resource selection.
  cluster   Shadow of `kubectx` and `kubens` for all-in-one switching between logical clusters.
  ctx       Shadow of `kubectx` for context switching.
  describe  Shadow of `kubectl describe` but with optional fzf for resource selection.
  exec      Shadow of `kubectl exec` but with optional fzf for pod and container selection.
  get       Shadow of `kubectl get` but with optional fzf for resource selection.
  logs      Shadow of `kubectl logs` but with optional fzf for pod and container selection.
  ns        Shadow of `kubens` for namespace switching.
  sched     Predict which nodes a pod can be scheduled on.
  shellenv  Generate k-aliases and completions for easy kubectl resource access.
  ssh       Shadow of `ssh` for connecting to a node, with optional fzf for node selection.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kuba-0.2.0.tar.gz (31.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kuba-0.2.0-py3-none-any.whl (31.2 kB view details)

Uploaded Python 3

File details

Details for the file kuba-0.2.0.tar.gz.

File metadata

  • Download URL: kuba-0.2.0.tar.gz
  • Upload date:
  • Size: 31.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.10 Darwin/24.5.0

File hashes

Hashes for kuba-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d09de74a0de7a836a4796878c1547d23e154db3758a50f6f10987f38323ecf34
MD5 dc1a3e563374a2c809da005e52064fa2
BLAKE2b-256 88c3905204f3c136c817825e2bdcbdfe3d4fd093f1fd603d627c2124471d2423

See more details on using hashes here.

File details

Details for the file kuba-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: kuba-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 31.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.10 Darwin/24.5.0

File hashes

Hashes for kuba-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a933506241a79dc5f6bf4fcb9cbb7dbe8de512f5e9e7dbe9f8ebada76cd753e
MD5 0fd6de643135eef3c96264fce3d454b0
BLAKE2b-256 8882594e6f795018e31ee1c8315ea35902d5e370c4f990574a24930bbbd6872c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page