一、kubectl命令补全
1、master安装命令补全
yum install -y bash-completion
2、临时生效
source /usr/share/bash-completion/bash_completion
3、永久生效
source <(kubectl completion bash)
echo "source <(kubectl completion bash)" >> ~/.bashrc
yum install -y bash-completion
source /usr/share/bash-completion/bash_completion
source <(kubectl completion bash)
echo "source <(kubectl completion bash)" >> ~/.bashrc