Skip to content

Instantly share code, notes, and snippets.

@CalvinHartwell
Created September 3, 2018 23:50
Show Gist options
  • Select an option

  • Save CalvinHartwell/4fd3fc489d882ad87440135c0055ee5e to your computer and use it in GitHub Desktop.

Select an option

Save CalvinHartwell/4fd3fc489d882ad87440135c0055ee5e to your computer and use it in GitHub Desktop.
kubectl cheat sheet command list
# Delete all pods stuck in Pending, useful if you cannot pull a specific image.
kubectl get pods --all-namespaces | grep Pending | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment