kubectl命令补全出错:kubectl ge-bash: _get_comp_words_by_ref: command not found

安装kubernets后,使用source <(kubectl completion bash)报错

kubectl ge-bash: _get_comp_words_by_ref: command not found

解决办法:

# yum install -y bash-completion

# source /usr/share/bash-completion/bash_completion

# source <(kubectl completion bash)

就可以完成补全了。

发布了389 篇原创文章 · 获赞 1041 · 访问量 163万+

猜你喜欢

转载自blog.csdn.net/fly910905/article/details/103332677