[root@doncus-crm01 ~]# kubectl get -bash: _get_comp_words_by_ref: command not found
You must specify the type of resource to get. Use "kubectl api-resources" for a complete list of supported resources.
# 实现k8s命令自动补全
yum install -y bash-completion
source /usr/share/bash-completion/bash_completion
source <(kubectl completion bash)
echo "source <(kubectl completion bash)" >> ~/.bashrc