文章目录
如果是centos系统
直接执行下面的命令即可
yum -y install bash-completionsource /usr/share/bash-completion/bash_completion source <(kubectl completion bash)kubectl get nodeskubectl completion bash > ~/.kube/completion.bash.incsource /root/.kube/completion.bash.inc source $HOME/.bash_profile
完