Skip to content

Instantly share code, notes, and snippets.

@stevehenderson
Last active August 27, 2022 13:58
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 stevehenderson/e93907fb22d3fcaf9432f82dab705011 to your computer and use it in GitHub Desktop.
Save stevehenderson/e93907fb22d3fcaf9432f82dab705011 to your computer and use it in GitHub Desktop.
Delete Kubernetes Persistent Volume

Sometimes you delete stuff on GKE Autopilot and it doesn't take:

kubectl delete pv troubledvolume --grace-period=0 --force
kubectl patch pv troubledvolume -p '{"metadata": {"finalizers": null}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment