Prepare EXAM CKA & CKAD

Auto complete and alias

# BASH
vi ~/.bashrc

# kubectl alias
alias k='kubectl'

source <(kubectl completion bash) # setup autocomplete in bash into the current shell, bash-completion package should be installed first.
echo "source <(kubectl completion bash)" >> ~/.bashrc # add autocomplete permanently to your bash shell.

# BASH
exec bash -l

Leave a Reply

Your email address will not be published.

ANOTE.DEV