Kubectl 自动补全--Kubectl autocomplete

Kubectl 自动补全–Kubectl autocomplete

kubectl 自动提示配置

官方参考文档位置 Kubectl autocomplete
直接将下面两行命令,在terminal中运行,即可

#内容为:见上面官方参考文档位置
source <(kubectl completion bash) # setup autocomplete in bash into the current shell, bash-completion package should be installed first.
echo "source <(kubectl completion bash)" >> ~/.bashrc # add autocomplete permanently to your bash shell.

猜你喜欢

转载自blog.csdn.net/shenhonglei1234/article/details/111432916
今日推荐