Skip to content

Instantly share code, notes, and snippets.

@szimek
Created July 4, 2015 20:33
Show Gist options
  • Select an option

  • Save szimek/df43fcddcf33342f5a1c to your computer and use it in GitHub Desktop.

Select an option

Save szimek/df43fcddcf33342f5a1c to your computer and use it in GitHub Desktop.

Revisions

  1. szimek created this gist Jul 4, 2015.
    2 changes: 2 additions & 0 deletions kube-api.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    $id = kubectl get pods | grep api | grep Running | head -n1 | cut -d' ' -f1
    kubectl exec $id -it bash