Created
September 21, 2018 06:21
-
-
Save mattclegg/eab60382c4843950378f50b587650796 to your computer and use it in GitHub Desktop.
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
kshell() { | |
kubectl exec -it --namespace="$1" "$2" -- env TERM=$TERM COLUMNS=$COLUMNS LINES=$LINES sh -il | |
} | |
kdelete() { | |
kubectl delete pod --namespace="$1" $2 | |
} | |
kpod() { | |
kubectl get pods --namespace=$1 -l$2 -o go-template="{{ range \$var,\$val := .items}}{{ if eq \$var 0 }}{{ \$val.metadata.name }}{{ end }}{{ end }}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment