Lab 3.6 Bash Auto-completion


Execute on masters

1. Install bash-completion

apt-get install bash-completion -y

2. Enable kubectl autocompletion

kubectl completion bash | sudo tee /etc/bash_completion.d/kubectl > /dev/null

3. Re-login to your master

exit
ssh podX-master1

4. Verify with types command using tab

# kubec[tab] ge[tab] no[tab]

kubectl get node