Thursday, June 13, 2019

kubectl auto completion of commands

If you want kubectl to behave like a base shell - tab completion of the command (press the tab twice), add following lines on user's .profile/.bash_profile

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

No comments:

Post a Comment