KubeKit - Fast Kubernetes CLI operations
Managing Kubernetes clusters, contexts, and namespaces can be time-consuming. But fear not! I’ve got you covered with three KubeKit smart tools: k, kc, and kn. These tools will streamline your workflow and make your life easier.

TL;DR
Full KubeKit installation:
curl -sL https://github.com/nh4ttruong/kubekit/raw/main/install.sh | sudo bash -s -- -a
Features
korkubectl: The officialkubectltool made by Official Kubernetes, you also could usekas its short version. They come with intelligent auto-completion! Just hitto see the magic happen. kc: Easily to switch between cluster contexts with a shorter aliaskc. Typekcinstead of the full command to get all contexts with current highlighting context.kn: Need to get all namepsaces or switch between cluster namespaces? No problem!knis your fast lane.
Installation
To install KubeKit, follow these steps:
- Install
kubectlonly:curl -sL https://github.com/nh4ttruong/kubekit/raw/main/install.sh | sudo bash - Install
kubectlwithkc(context) andkn(namespace) aliases operations:- Linux (bash):
curl -sL https://github.com/nh4ttruong/kubekit/raw/main/install.sh | sudo bash -s -- -a - MacOS (zsh):
curl -sL https://github.com/nh4ttruong/kubekit/raw/main/install.sh | sudo zsh -s -- -a
- Linux (bash):
- Manual install from repository:
git clone https://github.com/nh4ttruong/kubekit.git cd kubekit bash ./install.sh -a
The -a or --alias option is optional and allows you to install quick aliases for context kc and namespace kn operations.
Usage
Once installed, you can use KubeKit to enhance your Kubernetes workflow:
- Use
kas short version ofkubectl: - Use
kcto manage Kubernetes contexts:kc: List available contextskc <context-name>: Switch to the specified context
- Use
knto manage Kubernetes namespaces:kn: List available namespaceskn <namespace-name>: Switch to the specified namespace
For more information on KubeKit usage, refer to run kc -h and kn -h for help.
Reference
Contributing
Contributions are welcome! If you have any suggestions, feature requests, or bug reports, please open an issue or submit a pull request.