Kubectl auto complete - CloudCommandos/JohnChan GitHub Wiki
Make sure that you have bash-completion installed
apt-get install bash-completion
Check that bash-completion is installed
kubectl completion bash
Make bash-completion permanent
echo "source <(kubectl completion bash)" >> ~/.bashrc