Last active
September 5, 2019 01:19
-
-
Save nurinamu/030983dc9bba74b630d7c0872b7cd263 to your computer and use it in GitHub Desktop.
shell function for kubectl alias - This is for preventing input incorrect namespace when kubectl is typed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function kub() { | |
kubectl -n $@ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
usage
kubectl get pods -n dev
->kub dev get pods