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

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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