kubectl自动补全命令

1.安装bash-completion

yum install -y bash-completion

2.执行bash_completion

source /usr/share/bash-completion/bash_completion

3.重新加载kubectl completion

source <(kubectl completion bash)

image.png