yum install bash-completion 在环境变量中添加 source /usr/share/bash-completion/bash_completion source <(kubectl completion bash)