kubernetes自动补全
2022-01-03 本文已影响0人
文茶君
root@i-f1or71kf:~# apt-get install bash-completion
Reading package lists... Done
Building dependency tree
Reading state information... Done
bash-completion is already the newest version (1:2.8-1ubuntu1).
bash-completion set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.
root@i-f1or71kf:~#source /usr/share/bash-completion/bash_completion
root@i-f1or71kf:~# source <(kubectl completion bash)
root@i-f1or71kf:~# echo "source <(kubectl completion bash)" >> ~/.bashrc