-
-
Save InAnimaTe/fb2dd61d73d1d113208ac64032324841 to your computer and use it in GitHub Desktop.
kubectl exec helper
This file contains hidden or 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 kcsh () { | |
| if [ $# -eq 4 ]; then | |
| kubectl exec -ti "${2}" -c "${3}" --namespace="${1}" -- "${4}" | |
| else | |
| echo "Usage: $0 <namespace> <pod> <container> <command>" | |
| fi | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment