finds.dev← search

// the find

ahmetb/kubectl-aliases

★ 3,698 · Nu · Apache-2.0 · updated May 2025

Programmatically generated handy kubectl aliases.

A Python script that generates ~800 shell aliases for kubectl by permuting commands, resources, and flags into short mnemonics like `kgsvcoyaml` for `kubectl get service -o=yaml`. Bash, zsh, fish, and Nushell are all supported. For anyone who runs kubectl dozens of times a day, this is the kind of thing you install once and never think about again.

The alias generation is algorithmic, not hand-maintained — the Python script is the source of truth, so adding a new flag combination is a one-line change rather than 50 new entries. Fish shell support uses abbreviations instead of aliases, which expands the full command in-line before you hit enter — that's meaningfully better than opaque aliases for learning and auditing. The syntax is consistent enough that you can guess aliases without looking them up: namespace flag pattern, resource abbreviations, and output format all follow the same positional logic. Shell startup cost is honestly addressed in the FAQ rather than glossed over.

The alias namespace is frozen by design — the README explicitly says not to suggest new resources and to fork instead. That's a reasonable call for the maintainer but means your local Kubernetes environment (CRDs, custom resources) will never be covered without maintaining your own fork. `ksysgdepwslowidel` is genuinely unreadable to anyone who didn't memorize the grammar; there's no autocompletion help or cheat-sheet tooling bundled to assist newcomers. The generated file is a static artifact committed to the repo rather than generated at install time, so there's a chance it drifts from the script. No support for contexts (`--context`) as a composable element, which matters if you're switching between clusters regularly.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →