一镜粤、kubectl命令補(bǔ)全
1、master安裝命令補(bǔ)全
yum install -y bash-completion
2、臨時(shí)生效
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