Skip to content

Instantly share code, notes, and snippets.

@nurinamu
Last active September 5, 2019 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nurinamu/030983dc9bba74b630d7c0872b7cd263 to your computer and use it in GitHub Desktop.
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.
function kub() {
kubectl -n $@
}
@nurinamu
Copy link
Author

nurinamu commented Sep 5, 2019

usage
kubectl get pods -n dev -> kub dev get pods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment