配置 kubectl 子命令补全
[root@k8s-master test]# yum install -y bash-completion
[root@k8s-master test]# source /usr/share/bash-completion/bash_completion
[root@k8s-master test]# kubectl completion bash > ~/.kube/completion.bash.inc
[root@k8s-master test]# source '/root/.kube/completion.bash.inc'
[root@k8s-master test]# source $HOME/.bash_profile