https://v1-29.docs.kubernetes.io/zh-cn/docs/tasks/tools/install-kubectl-linux/
#安装 bash-completion
apt-get install bash-completion
或
yum install bash-completion
source /usr/share/bash-completion/bash_completion
echo 'source <(kubectl completion bash)' >>~/.bashrc