If you are working on multiple kubernetes cluster, namespaces at a time, then kmode
can help you out in pretty much simple way of promting the current configured kubectl context and namespace
.
To configure the kmode, we need to edit the ~/.bashrc
file and add the given functions, aliases to it. So it is recommended that to backup of ~/.bashrc
.
Follow the steps given in .bashrc_kmode
.
To turn on kmode
simply run kmode
command after the installation.
To turn off kmode
run kmode-off
command.