k8s tab出现错误,原因可能是没有装包
错误现象
错误现象: kubectl c-bash: _get_comp_words_by_ref: command not found loud-controller-man^C 解决方法如下: yum install bash-completion -y ls /usr/share/bash-completion/bash_completion source /usr/share/bash-completion/bash_completion source <(kubectl completion bash)