chkube is a bash function that manages multiple kubectl configs using symlinks
- copy this function to your bashrc aliases or functions file
- put all configs in ~/.kube/ with names like my-config.yaml (they must end in .yaml)
- symlink one of them to ~/.kube/config
- use
chkubeto manage them after that
If you don't want to use as a function and would prefer a script, change all the return statements to exit and copy the code inside the function into a file with a shebang
If you don't want to include the helper functions, you can replace all occurances of ohai, bullet, and error with echo and exclude them.
