Skip to content

Instantly share code, notes, and snippets.

@pacuna
Created February 8, 2018 13:37
Show Gist options
  • Save pacuna/8da0c87252d0c791f85da84c7f554710 to your computer and use it in GitHub Desktop.
Save pacuna/8da0c87252d0c791f85da84c7f554710 to your computer and use it in GitHub Desktop.
function execpod(){
kubectl exec -it $(kubectl get pods | grep -m1 $1 | grep -o '^\s*\S\+') /bin/bash
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment