A Zsh plugin for k9s that provides an interactive kubeconfig selector.
- Detects kubeconfig files in
~/.kube(max depth 2) - Uses
fzffor selection if available, with preview of contexts - Falls back to a numbered text menu if
fzfis not installed or cancelled - Supports multiple selections (multi-select in
fzfwith TAB) - Sets
KUBECONFIGenvironment variable for thek9ssession
Add the following to your .zshrc:
plug "acidix/zsh-k9s"Simply run k9s in your terminal.
If multiple kubeconfig files are found, you will be prompted to select one.
If you pass arguments (e.g., k9s -n my-namespace), they are passed through to the underlying k9s command.