k8s-kubectl命令自动补全
Centos
yum install -y bash-completion
source /usr/share/bash-completion/bash_completion
source <(kubectl completion bash)
echo "source <(kubectl completion bash)" >> ~/.bashrc
mac
brew install bash-completion
source $(brew --prefix)/etc/bash_completion
source <(kubectl completion bash)