错误信息:
- comp_words_by_ref: command not found
- get_comp_words_by_ref: command not found
解决方法:
- 安装 bash-completion
apt install bash-completion -y
- 修改 /etc/profile
source /etc/bash_completion
source <(kubectl completion bash)
source <(kubeadm completion bash)