kubectl-aliases is a small but extremely handy project that generates hundreds of shell aliases for kubectl so you no longer have to type long commands and flags repeatedly. It ships a prebuilt .kubectl_aliases file for Bash/Zsh, plus variants for Fish and Nushell, which you drop into your home directory and source from your shell config. The aliases are programmatically generated from permutations of common verbs, resources, flags, and options, so you get short forms like kgpo for kubectl get pod and more complex ones that include namespaces, label selectors, and output formats. This dramatically speeds up interactive Kubernetes workflows, especially when you spend a lot of time inspecting pods, services, deployments, and logs. The repository also includes a Python script used to generate the aliases, which advanced users can tweak if they want a custom alias set. It is distributed under the Apache-2.0 license and is widely used by Kubernetes practitioners.

Features

  • Hundreds of prebuilt aliases covering common kubectl verbs, resources, and flags
  • Ready-to-use .kubectl_aliases files for Bash, Zsh, Fish, and Nushell
  • Programmatic generation via a Python script so alias sets can be customized
  • Short, memorable alias patterns like k, kg, kgpo, ksysgpo for frequent operations
  • Simple installation by downloading one file into $HOME and sourcing from shell config
  • Apache-2.0 licensed and battle-tested by many Kubernetes users

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow kubectl-aliases

kubectl-aliases Web Site

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of kubectl-aliases!

Additional Project Details

Programming Language

Python

Related Categories

Python Libraries

Registered

2025-12-12