一、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
本文标题:kubernetes安装命令补全
本文链接:https://www.haomeiwen.com/subject/lsnktktx.html
网友评论