netshoot alias for k8s

Provides a quick bash prompt in the k8s cluster using https://hub.docker.com/r/nicolaka/netshoot
This commit is contained in:
Matthew Adams
2020-03-20 14:04:23 -05:00
committed by GitHub
parent 733f047026
commit 7a347b2c51

View File

@@ -18,6 +18,7 @@ function _set_pkg_aliases()
alias kcdn='kubectl describe node'
alias kcgpan='kubectl get pods --all-namespaces'
alias kcgdan='kubectl get deployments --all-namespaces'
alias kcnetshoot='kubectl run --generator=run-pod/v1 netshoot-$(uuidgen | tr A-Z a-z | sed 's/-//g') --rm -i --tty --image nicolaka/netshoot -- /bin/bash'
fi
}