yum install -y bash-completion #启动加载 echo 'source <(kubectl completion bash)' >> ~/.bashrc source ~/.bashrc
apt install bash-completion -y
kubectl(双击 Tab 键)