A fast and powerful fzf-based autocompletion plugin for kubectl, featuring label completion and automatic namespace switching.
Kubectl-fzf is a command-line plugin that adds fast, fuzzy-finding autocompletion to kubectl, the Kubernetes command-line tool. It solves the problem of slow or cumbersome tab completion when working with large Kubernetes clusters by providing instant, searchable suggestions for pods, labels, and other resources.
Kubernetes administrators, DevOps engineers, and developers who frequently use kubectl in terminal sessions and want to accelerate their workflow with efficient autocompletion.
Developers choose kubectl-fzf because it dramatically speeds up kubectl command entry using fzf's fuzzy matching, supports advanced features like label completion, and can be deployed flexibly either locally or in-cluster to optimize performance.
A fast kubectl autocompletion with fzf
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Integrates directly with kubectl's native autocompletion system through shell sourcing, requiring no changes to kubectl commands.
Uses fzf for instant, fuzzy search of resources like pods and labels, drastically reducing command entry time in complex clusters.
Provides autocompletion for Kubernetes label selectors (-l flag), eliminating manual typing and errors.
Supports running the backend server locally or as a pod in-cluster, allowing optimization for different cluster sizes and team setups.
Requires multiple steps: installing Go binaries, configuring shell autocompletion, and managing a server process, which can be error-prone for newcomers.
The local server mode can be CPU and bandwidth intensive on large clusters, potentially impacting performance and API server load.
On big clusters, the first autocompletion may take 30 seconds or more due to initial resource listing, as noted in the README.
Troubleshooting involves multiple layers (shell, server, port-forwarding) with separate debug steps, adding complexity when issues arise.