Skip to content

Instantly share code, notes, and snippets.

@AyumuKasuga
Created September 20, 2018 18:59
Embed
What would you like to do?
#!/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