Kubernetes Tools is a set of scripts that simplifies daily Kubernetes operations.
kctx: List contexts, switch context
kns: List namespaces, select default namespace
kpod: List pods in current namespace, describe pod
kexec: Get a shell of a selected container
kcopy: Copy common cli tools to selected container
To list all the available tools, run ktools
For usage of each tool, run [tool_name] -h
brew tap shawnxlw/homebrew-tap
brew install kubernetes-tools
ktools --init
cd ~
git clone https://github.com/shawnxlw/kubernetes-tools
# add the follow to your .bash_profile or .zshrc
PATH=$HOME/kubernetes-tools/bin:$PATH
# set up tab completion
ktools --init
Add the following into your .bash_profile
:
source $HOME/kubernetes-tools/completion/__completion
Add the following into your .zshrc
:
autoload -U compaudit compinit bashcompinit
compaudit && compinit && bashcompinit
source $HOME/kubernetes-tools/completion/__completion
This software is licensed under the MIT License.
v2.1.0 - 26/10/2018
- Added klogs
- Added fish-shell completions (PR by @nesl247)
v2.0.1 - 23/10/2018
- Updated kcp from binary copy to download
- Fixed pod name auto completion
v2.0.0 - 15/10/2018
- Changed to developer workflow
- Updated kctx, kns, kpod, kcopy, kctx
- Removed kbak, kds, klogs
v1.2.0 - 08/08/2018
- Updated kexec, kns, kpod, kctx, kds
- Added kcp
v1.0.0 - 07/08/2017
- Initial release