Skip to content

Instantly share code, notes, and snippets.

@szimek
Created July 4, 2015 20:33
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 szimek/df43fcddcf33342f5a1c to your computer and use it in GitHub Desktop.
Save szimek/df43fcddcf33342f5a1c to your computer and use it in GitHub Desktop.
Run bash on any API container
$id = kubectl get pods | grep api | grep Running | head -n1 | cut -d' ' -f1
kubectl exec $id -it bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment