k8s tab自动补全失效
安装K8S 集群后 发现使用kubectl无法使用tab 键补全命令
yum install -y bash-completion echo ". /usr/share/bash-completion/bash_completion" >> /root/.bash_profile echo ". <(kubectl completion bash)" >> /root/.bash_profile echo "source <(kubectl completion bash)" >> ~/.bashrc 退出重新登录 exit