Skip to content

Instantly share code, notes, and snippets.

@rhiroyuki
Created March 17, 2020 12:54
Show Gist options
  • Save rhiroyuki/171d94a8422e9ad63f1bbf1b9b06b9a4 to your computer and use it in GitHub Desktop.
Save rhiroyuki/171d94a8422e9ad63f1bbf1b9b06b9a4 to your computer and use it in GitHub Desktop.

Revisions

  1. rhiroyuki created this gist Mar 17, 2020.
    5 changes: 5 additions & 0 deletions kubectl.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    kubectl get pods --all-namespaces
    kubectl config get-contexts
    kubectl config use-context {some-context-here}
    kubectl exec -it --namespace {namespace} {pod-name} bash
    kubectl --namespace {namespace} delete pod {pod-name}