Skip to content

Instantly share code, notes, and snippets.

@iamcryptoki
Created November 15, 2021 09:23
Show Gist options
  • Select an option

  • Save iamcryptoki/78ff3dbaf5bb16ac3ad71d69047bf17c to your computer and use it in GitHub Desktop.

Select an option

Save iamcryptoki/78ff3dbaf5bb16ac3ad71d69047bf17c to your computer and use it in GitHub Desktop.
Kubernetes: Delete all pods with status 'Failed'.
$ kubectl delete pods --field-selector=status.phase=Failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment