Faster way to switch between kubeconfig files (not contexts).
Usage of kubectl-cf:
cf Select kubeconfig interactively
cf [config] Select kubeconfig directly
cf - Switch to the previous kubeconfig
This tool is designed to switch between kubeconfig files, if you want to switch between contexts within a single kubeconfig (or multiple kubeconfig files), you should use https://github.com/ahmetb/kubectx instead.
First, download tar file from the release page.
After downloading the tar file, extract it, then put kubectl-cf
in your PATH
. It can be called directly by typing kubectl-cf
, or as
a kubectl plugin kubectl cf
, because it has the
prefix kubectl-
.
You can also rename it to any name you want, or create a symlink to it, with a shorter name, like cf
.
- Auto completion;
- krew integration;
- Tests;