Skip to content

Instantly share code, notes, and snippets.

@MrAmbiG
Last active July 28, 2020 16:30
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 MrAmbiG/f7992c751545fe4edbbc436d2b01635a to your computer and use it in GitHub Desktop.
Save MrAmbiG/f7992c751545fe4edbbc436d2b01635a to your computer and use it in GitHub Desktop.
Delete namespace
# find out what is still there in namespace
kubectl api-resources --verbs=list --namespaced -o name | xargs -n 1 kubectl get --show-kind --ignore-not-found -n <namespace>
# edit those resources and comment out all those under finalizers.
# try deleting namespace now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment