Skip to content

Instantly share code, notes, and snippets.

@InAnimaTe
Last active March 7, 2017 18:30
Show Gist options
  • Select an option

  • Save InAnimaTe/fb2dd61d73d1d113208ac64032324841 to your computer and use it in GitHub Desktop.

Select an option

Save InAnimaTe/fb2dd61d73d1d113208ac64032324841 to your computer and use it in GitHub Desktop.
kubectl exec helper
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