k8s命令补全

2022-11-04 17:22:12 浏览数 (1)

依次执行以下四条命令即可完成k8s的命令补全

yum -y install bash-completion

source /usr/share/bash-completion/bash_completion

source <(kubectl completion bash)

>-~/.bashrc">echo "source <(kubectl completion bash)" >> ~/.bashrc

0 人点赞