Skip to content

Instantly share code, notes, and snippets.

@AyumuKasuga
Created September 20, 2018 18:59
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 AyumuKasuga/86a9b0e55bd412f6aa92f0268ff42ace to your computer and use it in GitHub Desktop.
Save AyumuKasuga/86a9b0e55bd412f6aa92f0268ff42ace to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ "$1" = "" ]; then
echo "Usage: kshell <pod>"
exit 1
fi
COLUMNS=`tput cols`
LINES=`tput lines`
TERM=xterm
kubectl exec -i -t $1 env COLUMNS=$COLUMNS LINES=$LINES TERM=$TERM bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment