Hi guys, just a tip to avoid typing -n [namespace] every single time. `export ns . . .

Marcus Do:
Hi guys, just a tip to avoid typing -n [namespace] every single time.
export ns=default
function updatens(){alias k="kubectl -n $1";}
then from now on if you want to switch to a namespace, you just need updatens [namespace]

Oliver Radwell:
or you can just use kubectl config set-context --current --namespace=[namespace] then every subsequent command will have a namespace set. just remember to revert it back after